fysxasteroids/engine/OverlayBase.h

26 lines
580 B
C
Raw Normal View History

2010-04-05 23:38:59 +02:00
#ifndef OVERLAY
#define OVERLAY
#include <SDL/SDL.h>
namespace Engine {
class OverlayBase {
public:
OverlayBase () {};
virtual ~OverlayBase() {};
virtual bool OnKeyDown (const SDL_keysym &keysym) { return false; };
virtual bool OnKeyUp (const SDL_keysym &keysym) { return false; };
virtual bool OnMouseButtonUp (Uint8 button, Uint16 xpos, Uint16 ypos) { return false; };
virtual bool OnMouseButtonDown (Uint8 button, Uint16 xpos, Uint16 ypos) { return false; };
virtual void Draw () = 0;
void _strange_function_for_vtable () {};
};
}
#endif /* OVERLAY */