Window.h 618 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef WINDOW_H
  2. #define WINDOW_H
  3. #include <GL/glew.h>
  4. #include <GLFW/glfw3.h>
  5. #include "utils/Size.h"
  6. #include "input/Controller.h"
  7. #include "rendering/Options.h"
  8. class Window final {
  9. GLFWwindow* window;
  10. Size& size;
  11. Controller& controller;
  12. public:
  13. Window(Size& size, Controller& controller, const Options& options);
  14. ~Window();
  15. Window(const Window&) = delete;
  16. Window& operator=(const Window&) = delete;
  17. Window(Window&&) = delete;
  18. Window& operator=(Window&&) = delete;
  19. bool hasError() const;
  20. void show();
  21. bool shouldClose() const;
  22. void swapBuffers();
  23. };
  24. #endif