check the method
bool CSurface::OnDraw(SDL_Surface* Surf_Dest, SDL_Surface* Surf_Src, int X, int Y)
on CSurface.h and CSurface.cpp
if everything is right there
there is a use of this method
on CEntity.cpp line 91
The function is:
bool CSurface::OnDraw(SDL_Surface* Surf_Dest, SDL_Surface* Surf_Src, int X, int Y)
I'm getting error while trying to compile because these methods
i got this source code on
http://www.sdltutorials.com/
[snake@localhost SDL]$ g++ -c CEntity.cpp
CEntity.cpp: In member function ‘virtual void CEntity::OnRender(SDL_Surface*)’:
CEntity.cpp:91:126: error: no matching function for call to ‘CSurface::OnDraw(SDL_Surface*&, SDL_Surface*&, float&, float&, int, int, int&, int&)’
CSurface::OnDraw(Surf_Display, Surf_Entity, X, Y, AnimState * Width, Anim_Control.GetCurrentFrame() * Height, Width, Height);