Hi,
I’m glad to announce that I start a Lua binding for SDL 2.0. For the
moment, I’m able to initialize SDL, create window, use timers and
such.
It will support Lua 5.2 only at first and maybe if I get more time I
will add support for Lua 5.1 but that’s not sure.
I plan to release it around mi september with all documentation. The
binding is written as C native code thus being very fast and portable.
Every component of SDL will be available except:
- Shared library object support. It’s too complex to seek C symbols
and execute them from Lua. This will requires FFI extension. Anyway, I
don’t think this is relevant still the binding is for Lua, so users
should not use C anymore :-).
Some component will be probably modified:
- File RW ops, for instance, it may be difficult to map the memory
managed RWops with Lua data. I will see how I can do that.
The binding tries to be as possible like the official library, so the
user does not need too much documentation to understand the binding.
However, some parts will be object oriented. For instance, when you
create a window, you use method on this window rather than function
taking the window as first parameter.
If you want to see the progress you can go on the redmine:
https://redmine.malikania.fr/projects/luasdl2
And download the mercurial repository
http://hg.malikania.fr/LuaSDL2
Please note that nothing is committed yet, but I will do it in the evening.
Regards,–
Demelier David