work on TestTriangle

This commit is contained in:
2026-02-04 14:37:06 -06:00
parent 5ab345460c
commit 3f102638b0
7 changed files with 257 additions and 71 deletions

View File

@@ -1,6 +1,12 @@
#include "Archimedes.h"
#include "modules/WindowModule/WindowModule.h"
#include "utils/Window/WindowEvents.h"
#define GLEW_STATIC
#include <GL/glew.h>
#include <GLFW/glfw3.h>
class TestTriangle : public Archimedes::Module {
@@ -11,16 +17,17 @@ class TestTriangle : public Archimedes::Module {
~TestTriangle();
void onLoad();
void onLoad() override;
void run();
void run() override;
bool onEvent(const Archimedes::Event& e) override;
private:
GLFWwindow* w;
Archimedes::Window* window;
std::list<std::function<void()>>::iterator rcmd_it;
Archimedes::WindowData data;
float vertices[3 * 3] = {
-0.5f, -0.5f, 0.0f,