summaryrefslogtreecommitdiffstats
path: root/dev/a4-dance/dance_floor.h
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2021-11-01 14:39:34 -0500
committerMatt Strapp <matt@mattstrapp.net>2021-11-01 14:39:34 -0500
commit36b8bde22e15e7a8608bd8920b4d6d8edf78af18 (patch)
tree1c022ce8d1854c6120ed492eb0bcad2e016e0f1f /dev/a4-dance/dance_floor.h
parentdo a3 (diff)
parentUpdate a4_dance.md (diff)
downloadcsci4611-36b8bde22e15e7a8608bd8920b4d6d8edf78af18.tar
csci4611-36b8bde22e15e7a8608bd8920b4d6d8edf78af18.tar.gz
csci4611-36b8bde22e15e7a8608bd8920b4d6d8edf78af18.tar.bz2
csci4611-36b8bde22e15e7a8608bd8920b4d6d8edf78af18.tar.lz
csci4611-36b8bde22e15e7a8608bd8920b4d6d8edf78af18.tar.xz
csci4611-36b8bde22e15e7a8608bd8920b4d6d8edf78af18.tar.zst
csci4611-36b8bde22e15e7a8608bd8920b4d6d8edf78af18.zip
Merge branch 'support-code' of https://github.umn.edu/umn-csci-4611-f21/shared-upstream
Diffstat (limited to 'dev/a4-dance/dance_floor.h')
-rw-r--r--dev/a4-dance/dance_floor.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/dev/a4-dance/dance_floor.h b/dev/a4-dance/dance_floor.h
new file mode 100644
index 0000000..8d992f4
--- /dev/null
+++ b/dev/a4-dance/dance_floor.h
@@ -0,0 +1,28 @@
+#ifndef DANCE_FLOOR_H_
+#define DANCE_FLOOR_H_
+
+#include <mingfx.h>
+
+#include <vector>
+
+class DanceFloor {
+public:
+ DanceFloor(float s, int c);
+
+ void Draw(const Matrix4 &modelMatrix, const Matrix4 &viewMatrix, const Matrix4 &projMatrix);
+
+ Color tile_color(int index);
+
+private:
+
+ float tileSize_;
+ int tileCount_;
+
+ std::vector< std::vector<Color> > colors_;
+
+ Texture2D tex_;
+ Mesh floorMesh_;
+};
+
+
+#endif