summaryrefslogtreecommitdiffstats
path: root/dev/gfxtest/gfx_test.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dev/gfxtest/gfx_test.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/dev/gfxtest/gfx_test.h b/dev/gfxtest/gfx_test.h
new file mode 100644
index 0000000..61304fe
--- /dev/null
+++ b/dev/gfxtest/gfx_test.h
@@ -0,0 +1,40 @@
+#ifndef GFX_TEST_H_
+#define GFX_TEST_H_
+
+#include <mingfx.h>
+using namespace mingfx;
+
+#include <string>
+#include <vector>
+
+class GfxTest : public GraphicsApp {
+public:
+
+ GfxTest();
+ virtual ~GfxTest();
+
+ void OnPauseBtnPressed();
+
+ void UpdateSimulation(double dt);
+
+ void InitOpenGL();
+ void InitNanoGUI();
+
+ void DrawUsingOpenGL();
+
+private:
+
+ // Sets up the computer graphics camera
+ Matrix4 rot_matrix_;
+ Matrix4 view_matrix_;
+ Matrix4 proj_matrix_;
+
+ Mesh teapot_;
+ DefaultShader shader_;
+
+ // Gui elements
+ nanogui::Button *pauseBtn_;
+ bool playing_;
+};
+
+#endif \ No newline at end of file