tolua++
binding structs and ctor/dtor with tolua++
Let\'s say I want to bind a piece of code to Lua that looks like this: typedef struct bar { void * some_data;[详细]
2023-02-10 06:47 分类:问答tolua++: Adding lua functions to a C++ class that has been exported to Lua
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,[详细]
2023-02-03 20:58 分类:问答tolua++ ignores assignment and inequality operator?
I am embedding Lua in a C++ class. It seems that tolua++ is ignoring some overloaded operators of my class.[详细]
2023-01-31 18:40 分类:问答How to determine if a C++ usertype has been registered with tolua
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.[详细]
2022-12-26 19:32 分类:问答Composing sequential rotations around different centers?
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.[详细]
2022-12-17 05:00 分类:问答