hey all:
I'm trying to bind a function and also a constructor for one of my Classes so that its callable in lua, but Its not working. Heres my class definition:
public Class CBoundingBox{
public:
CBoundingBox(float param1, float param2){}
float avg(int iparam1, float fparam2){
return 0.5f;
}
};
heres my module definition for CBoundingBox:
module(luaVM)
[
class_<CBoundingBox>("CBoundingBox")
.def(constructor<float, float>())
.def("avg", (float(*)(int, float) &CBoundingBox::avg)
];
any ideas how I'm declaring it wrong?
thanks y'all!
-neko
[edited by - nekoflux on May 1, 2004 4:05:47 PM]