1 #ifndef edu_jmu_cs_SDLFrameBuffer_h 2 #define edu_jmu_cs_SDLFrameBuffer_h 4 #include "FrameBuffer.h" virtual void setKeyboardHandler(void(*handler)(const SDL_Event &event))
Definition: SDLFrameBuffer.cpp:63
Definition: FrameBuffer.h:13
SDL_Renderer * renderer
Definition: SDLFrameBuffer.h:55
virtual void show()
Definition: SDLFrameBuffer.cpp:78
SDLFrameBuffer(int width, int height)
Definition: SDLFrameBuffer.cpp:5
bool keepRunning
Definition: SDLFrameBuffer.h:50
SDL_Window * window
Definition: SDLFrameBuffer.h:60
int height
Definition: FrameBuffer.h:54
virtual void setPixel(int x, int y, const Color &color)
Definition: SDLFrameBuffer.cpp:68
virtual int getHeight() const
Definition: SDLFrameBuffer.cpp:53
~SDLFrameBuffer()
Definition: SDLFrameBuffer.cpp:38
virtual int getWidth() const
Definition: SDLFrameBuffer.cpp:58
void(* keyboardHandler)(const SDL_Event &event)
Definition: SDLFrameBuffer.h:67
virtual void clear(const Color &color)
Definition: SDLFrameBuffer.cpp:45
int width
Definition: FrameBuffer.h:59
Definition: SDLFrameBuffer.h:11