summaryrefslogtreecommitdiffstats
path: root/dev/a4-dance/dance_floor.h
diff options
context:
space:
mode:
authorJessie Speert <speer034@umn.edu>2021-03-08 19:09:55 -0800
committerJessie Speert <speer034@umn.edu>2021-03-08 19:09:55 -0800
commitf30fcc505dc3ce2df25dce16b329c90c32049862 (patch)
tree88e51f09844d0df1627643ccc3a1335d5fd74cbf /dev/a4-dance/dance_floor.h
parentAdded Assignment 3 worksheet and code (diff)
downloadcsci4611-f30fcc505dc3ce2df25dce16b329c90c32049862.tar
csci4611-f30fcc505dc3ce2df25dce16b329c90c32049862.tar.gz
csci4611-f30fcc505dc3ce2df25dce16b329c90c32049862.tar.bz2
csci4611-f30fcc505dc3ce2df25dce16b329c90c32049862.tar.lz
csci4611-f30fcc505dc3ce2df25dce16b329c90c32049862.tar.xz
csci4611-f30fcc505dc3ce2df25dce16b329c90c32049862.tar.zst
csci4611-f30fcc505dc3ce2df25dce16b329c90c32049862.zip
Uploading Assignment 4
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