diff options
Diffstat (limited to 'Cubehole.h')
-rw-r--r-- | Cubehole.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); |