🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

binding my class with luabind..error..

Started by
0 comments, last by FogGobbler 19 years, 11 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
Advertisement
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