TestTriangle works
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
// This only works with opengl!!!!
|
||||
|
||||
|
||||
#include "Archimedes.h"
|
||||
|
||||
#include "utils/Window/WindowEvents.h"
|
||||
|
||||
#include "modules/WindowModule/WindowModule.h"
|
||||
|
||||
#define GLEW_STATIC
|
||||
#include <GL/glew.h>
|
||||
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
|
||||
class TestTriangle : public Archimedes::Module {
|
||||
|
||||
@@ -25,9 +27,9 @@ class TestTriangle : public Archimedes::Module {
|
||||
|
||||
private:
|
||||
|
||||
GLFWwindow* w;
|
||||
Archimedes::Window* window;
|
||||
|
||||
Archimedes::WindowData data;
|
||||
std::list<std::function<void()>>::iterator rcmd_it;
|
||||
|
||||
const char *vertexShaderSource = "#version 330 core\n"
|
||||
"layout (location = 0) in vec3 aPos;\n"
|
||||
|
||||
Reference in New Issue
Block a user