Open Source Tomb Raider Engine
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

WindowSDL.h 950B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*!
  2. * \file include/WindowSDL.h
  3. * \brief SDL windowing implementation
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _WINDOW_SDL_H_
  8. #define _WINDOW_SDL_H_
  9. #include "SDL.h"
  10. #include "system/Window.h"
  11. /*!
  12. * \brief SDL windowing implementation
  13. */
  14. class WindowSDL : public Window {
  15. public:
  16. /*!
  17. * \brief Constructs an object of WindowSDL
  18. */
  19. WindowSDL();
  20. /*!
  21. * \brief Deconstructs an object of WindowSDL
  22. */
  23. virtual ~WindowSDL();
  24. virtual void setSize(unsigned int width, unsigned int height);
  25. virtual void setFullscreen(bool fullscreen);
  26. virtual void setMousegrab(bool grab);
  27. virtual int initialize();
  28. virtual void eventHandling();
  29. virtual void setTextInput(bool on);
  30. virtual void swapBuffersGL();
  31. private:
  32. SDL_Window* mWindow; //!< This is the pointer to the SDL surface
  33. SDL_GLContext mGLContext; //!< The OpenGL Context
  34. SDL_GameController* controller;
  35. };
  36. #endif