Advertisement

binding my class with luabind..error..

Started by July 14, 2004 11:32 AM
0 comments, last by FogGobbler 20 years, 4 months ago
Hi! I need some help with this one. I want to bind (register) this class : (which I would normally call in c++ like this : m_BDTextures.Load(&m_Graphics, Filename). Here´s the class: class cTexture { protected: cGraphics *m_Graphics; IDirect3DTexture8 *m_Texture; unsigned long m_Width, m_Height; public: cTexture(); ~cTexture(); IDirect3DTexture8 *GetTextureCOM(); BOOL Load(cGraphics *Graphics, char *Filename, DWORD Transparent = 0, D3DFORMAT Format = D3DFMT_UNKNOWN); ... }; like this .. module(L) [ class_<cTexture>("cTexture") .def(constructor<>()) .def("Load", &cTexture::Load) ]; It doesn´t work. I get an error (C2665)in the primitive converter "match_constructor" part of "signature_match.hpp" (line 238). Any idea? Oli
Well, found out was it was.

I had to change "char ..." into "const char .." . Then it works.

This topic is closed to new replies.

Advertisement