separate glfw and glew
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
#include "Archimedes.h"
|
#include "Archimedes.h"
|
||||||
|
|
||||||
|
#define GLEW_STATIC
|
||||||
|
#include <GL/glew.h>
|
||||||
|
#include <GLFW/glfw3.h>
|
||||||
|
|
||||||
class Window {
|
class Window {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -2,11 +2,6 @@
|
|||||||
#include "App.h"
|
#include "App.h"
|
||||||
|
|
||||||
int main(int argc, char* argv[]) {
|
int main(int argc, char* argv[]) {
|
||||||
|
|
||||||
if(!glfwInit()) {
|
|
||||||
std::cout << "Still no glfw!\n";
|
|
||||||
std::abort();
|
|
||||||
}
|
|
||||||
App app(argc, argv);
|
App app(argc, argv);
|
||||||
app.run();
|
app.run();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,9 +6,6 @@
|
|||||||
#include <list>
|
#include <list>
|
||||||
|
|
||||||
|
|
||||||
#define GLEW_STATIC
|
|
||||||
#include <GL/glew.h>
|
|
||||||
#include <GLFW/glfw3.h>
|
|
||||||
//#include <chrono>
|
//#include <chrono>
|
||||||
//#include <thread>
|
//#include <thread>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user