Decreased GL,GLFW presence out of Window module

This commit is contained in:
MihailRis
2023-11-09 01:19:44 +03:00
parent 086f04af39
commit 1d9fc44482
6 changed files with 28 additions and 16 deletions
+6
View File
@@ -1,6 +1,8 @@
#include <iostream>
#include "Window.h"
#include "Events.h"
#define GLEW_STATIC
#include <GL/glew.h>
#include <GLFW/glfw3.h>
@@ -168,3 +170,7 @@ void Window::swapBuffers(){
glfwSwapBuffers(window);
Window::resetScissor();
}
double Window::time() {
return glfwGetTime();
}
+2
View File
@@ -29,6 +29,8 @@ public:
static void pushScissor(glm::vec4 area);
static void popScissor();
static void resetScissor();
static double time();
};
#endif /* WINDOW_WINDOW_H_ */