9 void initialize(
int width,
int height,
const char *title,
bool use_vsync);
12 void updateDimensions();
14 void fillFrame(
float r,
float g,
float b,
float a)
const;
15 void finishFrame()
const;
17 bool windowShouldClose() {
return glfwWindowShouldClose(m_window) != 0; };
18 void setWindowShouldClose(
bool value) { glfwSetWindowShouldClose(m_window,
static_cast<int>(value)); }
20 [[nodiscard]]
int width()
const noexcept {
return m_width; }
21 [[nodiscard]]
int height()
const noexcept {
return m_height; }
22 [[nodiscard]]
GLFWwindow *window()
const noexcept {
return m_window; }
23 [[nodiscard]]
static double time()
noexcept {
return glfwGetTime(); }
24 [[nodiscard]]
bool shouldClose() {
return glfwWindowShouldClose(m_window) != 0; }
27 int m_width, m_height;
31 GLFWmonitor *m_monitor;