lua-users home
lua-l archive

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


> I am using LUA in my game...One of my classes registers one of its
> methods, Add(), with LUA, so that it can be called by LUA. I have
> reduced my Add() method to simply doing a myvector.push_back(5),
> myvector is a private variable in my class, vector<int> myvector. Am I
> supposed to be using LUA differently with c++?
>

you can try using "tolua" for binding your classes and methods to Lua.
http://www.tecgraf.puc-rio.br/~celes/tolua/tolua-v3.html

-- waldemar