mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +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();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue