Open Source Tomb Raider Engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Window.h 788B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*!
  2. * \file include/Window.h
  3. * \brief Windowing interface
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _WINDOW_H_
  8. #define _WINDOW_H_
  9. typedef struct {
  10. char *text;
  11. unsigned int x;
  12. unsigned int y;
  13. } WindowString;
  14. /*!
  15. * \brief Windowing interface
  16. */
  17. class Window {
  18. public:
  19. /*!
  20. * \brief Deconstructs an object of Window
  21. */
  22. virtual ~Window();
  23. virtual void setDriver(const char *driver) = 0;
  24. virtual void setSize(unsigned int width, unsigned int height) = 0;
  25. virtual void setFullscreen(bool fullscreen) = 0;
  26. virtual void setMousegrab(bool grab) = 0;
  27. virtual int initialize() = 0;
  28. virtual void writeString(WindowString *s) = 0;
  29. virtual void swapBuffersGL() = 0;
  30. virtual void resizeGL(unsigned int w, unsigned int h);
  31. };
  32. #endif