-
Notifications
You must be signed in to change notification settings - Fork 595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DRAFT] SDL3_renderer and SDL_gpu support #772
Conversation
It's worth mentioning that the default text input event behavior has changed from SDL2 to SDL3. In SDL2 the events were fired on keypresses by default on desktop, but not mobile. In SDL3, these events are never fired until |
Looking great! Both demos worked well here. Couple questions...
|
Currently, the
Personally, I like the current setup of each backend having its own folder in
For some reason,
What do you mean by merge? In this case, I think the only change worth making is adding a big comment above the Also, I had to link both demos against |
We do adopt that pattern for the rawfb ones. It's kind of nice having a consolidated one, could possibly save some code: We could in theory have a
Apologies. I meant merge the pull request as is. But sounds like we should wait off. |
I've gotten pretty busy lately, but this PR is still on my mind. Pretty soon I hope to get back around to implementing the
This is a good point. Personally I think it makes the most sense to keep them separate, but we can see what the overlap looks like once the
@RobLoach if you would like, I can split the unfinished |
No worries. I can clean this up and get things in place. Thanks so much for the push forwards here 👀 |
I plan on starting SDL_gpu soon, but I've fully implemented the SDL3_renderer backend.
Main changes:
SDL_Vertex
now usesSDL_FColor
(float) instead ofSDL_Color
(uint8)Considerations:
#include <stddef.h>
foroffsetof
, but the sdl2_renderer backend doesn't do this. I'm assuming that @RobLoach knows where these Nuklear backend definitions areRelevant: