Prob with pure virtual func (i think)
Hey
Im restructuring a direct x program written in c++. Im calling a function called render which is a pure virtual function. The parent is GfxEntity and its child GfxEntitySprite has the implimentation of this function. When i call it in another class i get the error ''Render' : undeclared identifier'. Ive included them right i think so i dunno why i am having the problem. Here's some code.
in GfxEntity:
Code:
virtual void Render(const D3DXVECTOR3 *pos)=0;
in GfxEntitySprite:
Code:
void CGfxEntitySprite::Render(const D3DXVECTOR3 *pos)
{
...
}
and the call from Visualisation:
I have included the .h's for GfxEntity and GfxEntitySprite in Visualisation.h so i dunno why it cant see it. Any ideas?