Using SDL without SDL_Main

Hello,

Is there a way to do this? I want to use SDL inside a DLL to plugin to
my engine in progress. It can’t be done using SDL_Main as far as I
know.

Is there a process to do this?

Thanks :slight_smile:

SDL_main is just a wrapper to give you the chance to use a standard
int main(int, char**) without abstaining from system features like non-console
applications for Win32.

I am uncertain what you really want to do.
In LibUFO, a run-time selection of the most suitable video driver is used.
If SDL is chosen, it is loaded (via libdl, Win32 calls or whatever) and
initialized at run-time.
So you can load SDL at run-time and use it like any other library.

Regards,
Johannes

< http://libufo.sourceforge.net > The OpenGL GUI ToolkitOn Saturday 18 December 2004 15:18, R R wrote:

Hello,

Is there a way to do this? I want to use SDL inside a DLL to plugin to
my engine in progress. It can’t be done using SDL_Main as far as I
know.

Is there a process to do this?

heya RR,

sdl_main is open sourced and public domain, you can get the source and check
it out, and either modify or recode it to suit your needs.> ----- Original Message -----

From: deksesuma@gmail.com (R R)
To:
Sent: Saturday, December 18, 2004 6:18 AM
Subject: [SDL] Using SDL without SDL_Main

Hello,

Is there a way to do this? I want to use SDL inside a DLL to plugin to
my engine in progress. It can’t be done using SDL_Main as far as I
know.

Is there a process to do this?

Thanks :slight_smile:


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl