How can I use SDL2 within existing iOS UIWindow or UIView

in windows MFC, can use
Code:
SDL_Window * pWindow = SDL_CreateWindowFrom( (void *)( GetDlgItem(IDC_STATIC1)->GetSafeHwnd() ) );

but in iOS it doesn’t work! :frowning:

blackart wrote:

in windows MFC, can use
Code:
SDL_Window * pWindow = SDL_CreateWindowFrom( (void *)( GetDlgItem(IDC_STATIC1)->GetSafeHwnd() ) );

but in iOS it doesn’t work! :frowning:

Judging from SDL’s current iOS code, it doesn’t appear to be supported.

SDL_CreateWindowFrom on iOS, say in conjunction with iOS GLKView instances, could make for an interesting feature, IMO. I’m not sure how others feel about that though.

– David L.

I agree. I actually have a lot to say about this, but keep getting
sidetracked. I have an experimental repo that is starting to look at
this, but has been sidelined for months. Been meaning to follow up on
Ryan’s thread about SDL/GUI integration because I believe they are
directly related.

-EricOn 4/6/15, DLudwig wrote:

blackart wrote:

in windows MFC, can use
Code:
SDL_Window * pWindow = SDL_CreateWindowFrom( (void *)(
GetDlgItem(IDC_STATIC1)->GetSafeHwnd() ) );

but in iOS it doesn’t work! :frowning:

Judging from SDL’s current iOS code, it doesn’t appear to be supported.

SDL_CreateWindowFrom on iOS, say in conjunction with iOS GLKView instances,
could make for an interesting feature, IMO. I’m not sure how others feel
about that though.

– David L.


Beginning iPhone Games Development
http://playcontrol.net/iphonegamebook/