work on TestTriangle
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user