1 #ifndef CMU462_RENDERER_H
2 #define CMU462_RENDERER_H
35 virtual void init(
void ) = 0;
42 virtual void render(
void ) = 0;
52 virtual void resize(
size_t w,
size_t h ) = 0;
59 virtual std::string
name(
void ) = 0;
66 virtual std::string
info(
void ) = 0;
91 virtual void cursor_event(
float x,
float y,
unsigned char keys ) = 0;
101 virtual void scroll_event(
float offset_x,
float offset_y ) = 0;
107 #endif // CMU462_RENDERER_H
virtual ~Renderer(void)
Virtual Destructor.
Definition: renderer.h:27
virtual void init(void)=0
Initialize the renderer.
virtual void cursor_event(float x, float y, unsigned char keys)=0
Respond to cursor events.
virtual void resize(size_t w, size_t h)=0
Respond to buffer resize.
virtual std::string info(void)=0
Return a brief description of the renderer.
Abstract renderer definition.
Definition: renderer.h:19
virtual void key_event(char key)=0
Respond to key event.
virtual void render(void)=0
Draw content.
virtual void scroll_event(float offset_x, float offset_y)=0
Respond to zoom event.
virtual std::string name(void)=0
Return a name for the renderer.