Let\'s say I want to bind a piece of code to Lua that looks like this: typedef struct bar { void * some_data;
I am using tolua++ to export some C++ classes to Lua. My understanding that each class is \'implemented\' on the lua side,开发者_如何转开发 as a lua table. I am wondering if it is possible therefore,
I am embedding Lua in a C++ class. It seems that tolua++ is ignoring some overloaded operators of my class.
We use tolua++ to generate Lua bindings for C++ classes. Assume I have a C++ class: class Foo { //Some methods in Foo, irrelevant to question.
The following code draws a line, rotates it 30 degrees around its left end, restores it to its original position, rotates it 30 degrees around its right end, and then repeats several times.