22 lines
280 B
C++
22 lines
280 B
C++
#ifndef WINDOW_H
|
|
#define WINDOW_H
|
|
|
|
#include <SDL.h>
|
|
|
|
class Window
|
|
{
|
|
public:
|
|
bool create();
|
|
void run_event_loop();
|
|
|
|
protected:
|
|
void resize();
|
|
void redraw();
|
|
void handle_event(SDL_Event & event);
|
|
|
|
SDL_Window * m_window;
|
|
bool m_exit_requested;
|
|
};
|
|
|
|
#endif
|