M
Michael Sgier
Hello
because i've a load texture function in md2.cpp i THINK to
need to call the CMD2Model::Load in the md2.cpp
So i fire up enemies in this class:
in ogro.h:
class COgroEnemy : public CEnemy // CEnemy is derived from CEntity and
CEntity from Class CMD2Model
{
public:
COgroEnemy() { Load(); }
then in ogro.cpp:
void COgroEnemy::Load()
{
// load model
CMD2Model::Load("Models/Ogro/Tris.MD2", "Models/Ogro/Ogrobase.bmp");
}
error: no matching function for call to `COgroEnemy::Load()'
error: candidates are: int CMD2Model::Load(char*, char*)
that's in md2.h:
int Load(char *modelFile, char *skinFile);
What is my mistake here? The same works under Windows but i can't figure
out any differences with my Linux version above.
THANKS and regards
Michael
because i've a load texture function in md2.cpp i THINK to
need to call the CMD2Model::Load in the md2.cpp
So i fire up enemies in this class:
in ogro.h:
class COgroEnemy : public CEnemy // CEnemy is derived from CEntity and
CEntity from Class CMD2Model
{
public:
COgroEnemy() { Load(); }
then in ogro.cpp:
void COgroEnemy::Load()
{
// load model
CMD2Model::Load("Models/Ogro/Tris.MD2", "Models/Ogro/Ogrobase.bmp");
}
error: no matching function for call to `COgroEnemy::Load()'
error: candidates are: int CMD2Model::Load(char*, char*)
that's in md2.h:
int Load(char *modelFile, char *skinFile);
What is my mistake here? The same works under Windows but i can't figure
out any differences with my Linux version above.
THANKS and regards
Michael