Original Post
Hi I needto enumerate ressources in my script (c++ & luabind) : So TextureEnum() need a function like this : bool texenum(const char *name); to be "callbacked". If I'm doing this in my C++ code : TextureEnum(texenum); Everything goes well. Now I want to export it in my lua scripts, so I set a lua function to be the callback but every try fails. I looked at luabind::object but I don't understand the magic behind. Can someone light my fire with a good example plz ?
class cRessourceManager
{
void TextureEnum(bool (*func)(const char *));
}