TestTriangle works

This commit is contained in:
2026-02-04 17:31:17 -06:00
parent 9dfabc6dae
commit 8581589bfe
3 changed files with 79 additions and 165 deletions

View File

@@ -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"