hi list,
i’m trying to get sdl support working for an application that implements
extensions using shared objects (dlopen). however, it seems that on OSX
the main entry point of the application using SDL needs to be wrapped.
is there any way to work around this? to be able to load SDL support
into a c application using a dlopen plugin?
cheers,
tom
The wrapped main function is to create the SDL window, set up the
menubar, etc.
You should be able to get along perfectly fine without it, assuming you
set all of that up yourself. I would look at SDLMain.m and see exactly
what it does, and emulate that in your own program (ie, pushing Quit
events, giving it a window to draw into, etc).
Richard SchreyerOn Dec 3, 2003, at 12:19 AM, Tom Schouten wrote:
i’m trying to get sdl support working for an application that
implements
extensions using shared objects (dlopen). however, it seems that on OSX
the main entry point of the application using SDL needs to be wrapped.
is there any way to work around this? to be able to load SDL support
into a c application using a dlopen plugin?