lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2011/10/21 Patrick Donnelly <batrick@batbytes.com>:
> On Thu, Oct 20, 2011 at 9:37 PM, Xavier Wang <weasley.wx@gmail.com> wrote:
>>  - write it in pure Lua? first is the speed, maybe LuaJIT may fast,
>> then, using Lua to do actually render?
>
> Yes! Use LuaJIT 2.x with FFI. I believe plenty of people have already
> have opengl FFI bindings written. Just google around. With the FFI, it
> should be lightning fast...
>
> --
> - Patrick Donnelly
>
>

This is a good idea, thank you :-)

May be I should learn to wrtie C wrappers for C++ class, and try to
write FFI interface (may be meta-method is supported) for my C++
libraries.

Thank you.