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
How can I use SDL2 within existing iOS UIWindow or UIView
blackart
Guest

mac os x 10.10, ios 8.1, xcode 6.1, SDL2 2.0.3

I have build libSDL2.a successed, SDL Demo successed too.

the WindowId hack for SDL1.3 did not work now.

can you help me? Please!



--
View this message in context: http://sdl.5483.n7.nabble.com/How-can-I-use-SDL2-within-existing-iOS-UIWindow-or-UIView-tp43663.html
Sent from the SDL mailing list archive at Nabble.com.
_______________________________________________
SDL mailing list

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


Joined: 14 Jan 2015
Posts: 1
in windows MFC, can use
Code:
SDL_Window * pWindow = SDL_CreateWindowFrom( (void *)( GetDlgItem(IDC_STATIC1)->GetSafeHwnd() ) );


but in iOS it doesn't work! Sad
DLudwig


Joined: 09 Feb 2012
Posts: 179
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! Sad


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.
How can I use SDL2 within existing iOS UIWindow or UIView
Eric Wing
Guest

On 4/6/15, DLudwig wrote:
Quote:

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




but in iOS it doesn't work! Sad


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.




-Eric
--
Beginning iPhone Games Development
http://playcontrol.net/iphonegamebook/
_______________________________________________
SDL mailing list

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