12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- /*!
- * \file include/WindowSDL.h
- * \brief SDL windowing implementation
- *
- * \author xythobuz
- */
-
- #ifndef _WINDOW_SDL_H_
- #define _WINDOW_SDL_H_
-
- #include "SDL.h"
-
- #include "Window.h"
-
- /*!
- * \brief SDL windowing implementation
- */
- class WindowSDL : public Window {
- public:
-
- /*!
- * \brief Constructs an object of WindowSDL
- */
- WindowSDL();
-
- /*!
- * \brief Deconstructs an object of 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 delay(unsigned int ms);
-
- virtual void swapBuffersGL();
-
- private:
- SDL_Window *mWindow; //!< This is the pointer to the SDL surface
- SDL_GLContext mGLContext; //!< The OpenGL Context
-
- bool mTextInput;
- };
-
- #endif
|