lua-users home
lua-l archive

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


Yes, of course.  You just have to make C function wrappers for the C++
objects.  Take a look at http://www.tecgraf.puc-rio.br/~celes/tolua/
which does just that.  Although I would recommend writing your own
wrapper for games, as you want to squeeze every bit of performance
possible.

On Sat, 2002-03-30 at 22:17, Robert Sadedin wrote:
> I'm sure this has been asked and answered many times, but I could not locate a clear answer in the message archives.
> 
> Can I use lua as an ebedded scripting language in my c++ code, such that my lua scripts have access to my c++ objects, and can call member functions, etc?
> 
> I want to control the game objects, created in the main c++ code, through the script, but don't know if pointers to objects can be accessed within lua.