summaryrefslogtreecommitdiffstats
path: root/Cuboid.h
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-11-27 20:47:58 +0100
committerMatthias Schiffer <matthias@gamezock.de>2009-11-27 20:47:58 +0100
commit59360094e5ac1ddeb5eda365ac4ccf765786635f (patch)
tree4ddf107804febdfb4550a0e616a07945c65c5e96 /Cuboid.h
downloadc3d-59360094e5ac1ddeb5eda365ac4ccf765786635f.tar
c3d-59360094e5ac1ddeb5eda365ac4ccf765786635f.zip
Initial commit
Diffstat (limited to 'Cuboid.h')
-rw-r--r--Cuboid.h29
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_*/
+