The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Empty window on SDL2 for iOS?
Joshua Granick
Guest

Hi everyone,

We're using SDL2 for Windows, Mac and Linux with great success. I recently
got SDL2 for Android working as well, but when I added SDL2 for iOS
support, I get a window with a size of 0 x 0, and nothing appears to
render. I do not get an error with GL calls, but I do eventually see that
the application exits with no error or message.

Has anyone seen this before?

You can see the code we're using here, here and here:

https://github.com/openfl/lime/blob/master/project/src/backend/sdl/SDLApplication.cpp
https://github.com/openfl/lime/blob/master/project/src/backend/sdl/SDLRenderer.cpp
https://github.com/openfl/lime/blob/master/project/src/backend/sdl/SDLWindow.cpp

Thanks!
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Empty window on SDL2 for iOS?
Joshua Granick
Guest

Hi again,

I was using "main" instead of "SDL_main", simple as that


On Sat, 21 Mar 2015 16:05:19 -0700, Joshua Granick
wrote:

Quote:
Hi everyone,

We're using SDL2 for Windows, Mac and Linux with great success. I
recently got SDL2 for Android working as well, but when I added SDL2 for
iOS support, I get a window with a size of 0 x 0, and nothing appears to
render. I do not get an error with GL calls, but I do eventually see
that the application exits with no error or message.

Has anyone seen this before?

You can see the code we're using here, here and here:

https://github.com/openfl/lime/blob/master/project/src/backend/sdl/SDLApplication.cpp
https://github.com/openfl/lime/blob/master/project/src/backend/sdl/SDLRenderer.cpp
https://github.com/openfl/lime/blob/master/project/src/backend/sdl/SDLWindow.cpp

Thanks!
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org