Backov
2004.09.14, 07:25 PM
Hello all, I've been lurking for a while but found I need to post..
I am working on the toolset for a game engine, SDL based, cross-platform.
However: I am an experienced Windows developer who has only recently switched to OSX (a few months ago) and so some OSX/XCode things still have me puzzled.
The one that's plaguing me now, is how do I open an SDL window AND some cocoa windows? The reason is that I need my gui widgets to render using the same objects they will render with in the game engine (for code maintainability mostly) so I want to have an SDL interface design window open, and then the Cocoa tool windows open (probably in the other monitor.).
I know this SHOULD be possible, and I seem to recall reading an article about how to do it, but my google-fu is failing me. If someone can go over the basic steps? Do I start with a cocoa app template and then open an SDL window? How do I get messages (clicks, etc) from the SDL window?
Barring that working at all, is there a way I can get SDL to render into an offscreen surface and then just do some blit to a cocoa customview?
Cheers,
Jason
I am working on the toolset for a game engine, SDL based, cross-platform.
However: I am an experienced Windows developer who has only recently switched to OSX (a few months ago) and so some OSX/XCode things still have me puzzled.
The one that's plaguing me now, is how do I open an SDL window AND some cocoa windows? The reason is that I need my gui widgets to render using the same objects they will render with in the game engine (for code maintainability mostly) so I want to have an SDL interface design window open, and then the Cocoa tool windows open (probably in the other monitor.).
I know this SHOULD be possible, and I seem to recall reading an article about how to do it, but my google-fu is failing me. If someone can go over the basic steps? Do I start with a cocoa app template and then open an SDL window? How do I get messages (clicks, etc) from the SDL window?
Barring that working at all, is there a way I can get SDL to render into an offscreen surface and then just do some blit to a cocoa customview?
Cheers,
Jason