123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
-
-
- #ifndef _WINDOW_SDL_H_
- #define _WINDOW_SDL_H_
-
- #include "SDL.h"
-
- #include "Window.h"
-
-
- class WindowSDL : public Window {
- public:
-
-
-
- WindowSDL();
-
-
-
- virtual ~WindowSDL();
-
- virtual void setSize(unsigned int width, unsigned int height);
-
- virtual void setFullscreen(bool fullscreen);
-
- virtual void setMousegrab(bool grab);
-
- virtual int initialize();
-
- virtual void eventHandling();
-
- virtual void setTextInput(bool on);
-
- virtual void swapBuffersGL();
-
- private:
- SDL_Window *mWindow;
- SDL_GLContext mGLContext;
- };
-
- #endif
|