summaryrefslogtreecommitdiffstats
path: root/Cubehole.h
diff options
context:
space:
mode:
authorConstantin Riß <constantin.riss@dre.de>2010-01-13 21:07:04 +0100
committerConstantin Riß <constantin.riss@dre.de>2010-01-13 21:07:04 +0100
commitd493571a6cd6a3adfce5a572ab451dd7c95197ac (patch)
treec8440c782dfc4faec99f737c9619336480e756be /Cubehole.h
parent1bcde14162e469919c16042f50b5d48f5fd9896e (diff)
downloadc3d-d493571a6cd6a3adfce5a572ab451dd7c95197ac.tar
c3d-d493571a6cd6a3adfce5a572ab451dd7c95197ac.zip
Das Programm läuft jetzt und die Cubeholes wurden verbessert.
Diffstat (limited to 'Cubehole.h')
-rw-r--r--Cubehole.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Cubehole.h b/Cubehole.h
index ae31052..c4710d1 100644
--- a/Cubehole.h
+++ b/Cubehole.h
@@ -11,6 +11,10 @@ class Cubehole
public:
Cubehole(): width(0), height(0), depth(0), x(0), y(0), z(0), innerwidth(0), innerdepth(0) {
setColor(vmml::vec4f::ONE, vmml::vec4f::ONE, vmml::vec4f::ONE, vmml::vec4f::ONE);
+ front.setRotate(0);
+ right.setRotate(90);
+ back.setRotate(180);
+ left.setRotate(270);
}
Cubehole(float width0, float height0, float depth0, float x0, float y0, float z0,
float innerwidth0, float innerdepth0,
@@ -50,10 +54,6 @@ class Cubehole
x = x0;
y = y0;
z = z0;
- front.setPos(x, y, z+(depth/2-(depth-innerdepth)/4));
- right.setPos(x, y, z-(width/2-(width-innerwidth)/4));
- back.setPos(x, y, z+(depth/2-(depth-innerdepth)/4));
- left.setPos(x, y, z-(width/2-(width-innerwidth)/4));
}
void setColor(const vmml::vec4f &cf, const vmml::vec4f &cr, const vmml::vec4f &cb, const vmml::vec4f &cl) {
front.setColor(cf);