summaryrefslogtreecommitdiffstats
path: root/dev/gfxtest/gfx_test.h
diff options
context:
space:
mode:
authorRitchie <paulx161@umn.edu>2021-01-20 13:31:42 -0600
committerGitHub Enterprise <noreply-github@umn.edu>2021-01-20 13:31:42 -0600
commit9ef7449585f9e9e77516df31bcd6a90a72c20d16 (patch)
treeddecd4d13d9d9e6a0c4bc76cc45eef765567e4e3 /dev/gfxtest/gfx_test.h
parentUpdated README.md (diff)
downloadcsci4611-9ef7449585f9e9e77516df31bcd6a90a72c20d16.tar
csci4611-9ef7449585f9e9e77516df31bcd6a90a72c20d16.tar.gz
csci4611-9ef7449585f9e9e77516df31bcd6a90a72c20d16.tar.bz2
csci4611-9ef7449585f9e9e77516df31bcd6a90a72c20d16.tar.lz
csci4611-9ef7449585f9e9e77516df31bcd6a90a72c20d16.tar.xz
csci4611-9ef7449585f9e9e77516df31bcd6a90a72c20d16.tar.zst
csci4611-9ef7449585f9e9e77516df31bcd6a90a72c20d16.zip
Added /dev/gfxtest/*
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