Open Source Tomb Raider Engine
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

WindowSDL.h 1013B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 "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 bool getMousegrab();
  28. virtual int initialize();
  29. virtual void eventHandling();
  30. virtual void setTextInput(bool on);
  31. virtual bool getTextInput();
  32. virtual void delay(unsigned int ms);
  33. virtual void swapBuffersGL();
  34. private:
  35. SDL_Window *mWindow; //!< This is the pointer to the SDL surface
  36. SDL_GLContext mGLContext; //!< The OpenGL Context
  37. };
  38. #endif