binding my class with luabind..error..
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement