[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: SDL main within a module
- From: askok@...
- Date: Sun, 30 Apr 2006 23:42:57 +0300 (EEST)
On certain systems, initialization of SDL library is done before main() is called, by 'hijacking' main into
the SDL codebase (-lsdlmain). This is not possible from within an extension module, since a main loop
is already up and running.
Anyways, this seems to be a known issue also on SDL list, and there is hope SDL 1.3 shall "fix" it,
offering an alternative initialization/cleanup scheme.
-asko
Lainaus Alex Queiroz <asandroq@gmail.com>:
> Hallo,
>
> On 4/29/06, Asko Kauppi <askok@dnainternet.net> wrote:
> >
> > What shall I do? Any ideas and discussion is welcome. Does someone
> > know, how other SDL bindings (Ruby, Python..) have overcome this?
> > Have they?
> >
>
> I'm not sure I've understood your problem. Since it's a module to
> be loaded by Lua, why do you need a main() function?
>
> --
> -alex
> http://www.ventonegro.org/
>