From d493571a6cd6a3adfce5a572ab451dd7c95197ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Constantin=20Ri=C3=9F?= Date: Wed, 13 Jan 2010 21:07:04 +0100 Subject: =?UTF-8?q?Das=20Programm=20l=C3=A4uft=20jetzt=20und=20die=20Cubeh?= =?UTF-8?q?oles=20wurden=20verbessert.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cubehole.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Cubehole.h') 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); -- cgit v1.2.3