diff options
Diffstat (limited to 'Cuboid.h')
-rw-r--r-- | Cuboid.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Cuboid.h b/Cuboid.h new file mode 100644 index 0000000..661dc0d --- /dev/null +++ b/Cuboid.h @@ -0,0 +1,29 @@ +#ifndef _CUBOID_H_ +#define _CUBOID_H_ + +#include "Triangle.h" +#include "Matrix.h" + +#include <iostream> +#include <list> + +class Cuboid
+{
+ public:
+ Cuboid(float height, float width, float depth, float x, float y, float z);
+ float getHeight();
+ float getWidth();
+ float getDepth();
+ float getPosX();
+ float getPosY();
+ float getPosZ();
+ void setSize(float h, float w, float d);
+ void setPos(float x, float y, float z);
+ std::list<Triangle> getTriangles(const Matrix &modelview);
+
+ private: + float height, width, depth;
+ float x, y, z;
+};
+#endif /*_CUBOID_H_*/ + |