diff options
author | KT <tran0563@umn.edu> | 2021-10-19 14:03:28 -0500 |
---|---|---|
committer | KT <tran0563@umn.edu> | 2021-10-19 14:03:28 -0500 |
commit | 12b0b74d43b7d93eee82ae6fa3dced499cd8a1f6 (patch) | |
tree | 8e89330e51de3aa45ad3fafc57dc14eb5e1786e2 /dev/a4-dance/dance_floor.h | |
parent | Publish a3 (diff) | |
download | csci4611-12b0b74d43b7d93eee82ae6fa3dced499cd8a1f6.tar csci4611-12b0b74d43b7d93eee82ae6fa3dced499cd8a1f6.tar.gz csci4611-12b0b74d43b7d93eee82ae6fa3dced499cd8a1f6.tar.bz2 csci4611-12b0b74d43b7d93eee82ae6fa3dced499cd8a1f6.tar.lz csci4611-12b0b74d43b7d93eee82ae6fa3dced499cd8a1f6.tar.xz csci4611-12b0b74d43b7d93eee82ae6fa3dced499cd8a1f6.tar.zst csci4611-12b0b74d43b7d93eee82ae6fa3dced499cd8a1f6.zip |
Publish a4
Diffstat (limited to 'dev/a4-dance/dance_floor.h')
-rw-r--r-- | dev/a4-dance/dance_floor.h | 28 |
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 |