12345678910111213141516171819202122232425262728293031 |
- #ifndef WINDOW_H
- #define WINDOW_H
- #include <GL/glew.h>
- #include <GLFW/glfw3.h>
- #include "rendering/WindowSize.h"
- #include "input/Controller.h"
- #include "rendering/Options.h"
- class Window final {
- GLFWwindow* window;
- WindowSize& size;
- Controller& controller;
- public:
- Window(WindowSize& size, Controller& controller, const Options& options);
- ~Window();
- Window(const Window&) = delete;
- Window& operator=(const Window&) = delete;
- Window(Window&&) = delete;
- Window& operator=(Window&&) = delete;
- bool hasError() const;
- void show();
- bool shouldClose() const;
- void swapBuffers();
- };
- #endif
|