mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
Decreased GL,GLFW presence out of Window module
This commit is contained in:
parent
086f04af39
commit
1d9fc44482
6 changed files with 28 additions and 16 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
@ -29,6 +29,8 @@ public:
|
|||
static void pushScissor(glm::vec4 area);
|
||||
static void popScissor();
|
||||
static void resetScissor();
|
||||
|
||||
static double time();
|
||||
};
|
||||
|
||||
#endif /* WINDOW_WINDOW_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue