Accessing Classes

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Accessing Classes

Jose Mendoza
Hi!
How can Lua access a class and its member function?
For example, I have an Image class, and a Draw member
function Image::Draw.

If in C++ I can access this using Image->Draw, how
would I do it in Lua?

Thanks!

__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

Reply | Threaded
Open this post in threaded view
|

Re: Accessing Classes

Denis Andreev
JM> How can Lua access a class and its member function?

You may use addons and binders: tolua, luna, luauserdata and etc.

Look at http://lua-users.org/

My recomendations: tolua.

--Denq