[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Design mistakes in mixed C/C++ and Lua projects (was: How can I be sure LuaJIT is working?)
- From: Xavier Wang <weasley.wx@...>
- Date: Fri, 21 Oct 2011 09:52:33 +0800
2011/10/21 Patrick Donnelly <email@example.com>:
> On Thu, Oct 20, 2011 at 9:37 PM, Xavier Wang <firstname.lastname@example.org> 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++