Skip to content
This repository has been archived by the owner on Dec 2, 2019. It is now read-only.

Non OpenGL SDL2 backend that uses SDL2_gfx #858

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

rswinkle
Copy link
Contributor

It's based on the old 1.2 backend as you can see in my commits. It doesn't clash with the other pull request/issue currently open (which is sdl_native) and the old SDL1.2 folder was sdl1.2_gfx not sdl_gfx so I think that's sufficient.

I could rename the folder sdl2_gfx or similar but that would be inconsistent/confusing since the opengl ones are sdl_openglX not sdl2_openglX even though they've always used SDl2.

Also I can create a new branch with a single commit if you prefer but I wanted to show the 1.2 to 2 porting process if people were interested.

Lastly, I also found an unrelated bug. If you define VARARGS the compile fails unless the user includes stdarg.h before including nuklear. This is because va_list is undefined but needed even in the header portion of nuklear.h unlike for STANDARD_IO etc. where they're only needed in the implementation.

I can fix that in a separate pull request or add it to this one. I think it's just adding stdarg.h here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant