diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-12-10 22:21:32 +0100 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-12-10 22:21:32 +0100 |
commit | 77bb8d19a7e541946aa29ab8ef4438890a86f00c (patch) | |
tree | 7be38d0c0ccee692275355308c3ffd62334c0331 /Trapezocube.h | |
parent | 7b95a7d4bf899b4e87509ded6bf9633b944febaf (diff) | |
download | c3d-77bb8d19a7e541946aa29ab8ef4438890a86f00c.tar c3d-77bb8d19a7e541946aa29ab8ef4438890a86f00c.zip |
Farben in leeren Konstruktoren auf Weiß initialisieren
Diffstat (limited to 'Trapezocube.h')
-rw-r--r-- | Trapezocube.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Trapezocube.h b/Trapezocube.h index 3c2aa71..5bcaad1 100644 --- a/Trapezocube.h +++ b/Trapezocube.h @@ -8,7 +8,7 @@ class Trapezocube { public: - Trapezocube(): widthfront(0), widthback(0), height(0), depth(0), x(0), y(0), z(0), rotate(0) {} + Trapezocube(): widthfront(0), widthback(0), height(0), depth(0), x(0), y(0), z(0), rotate(0), color(vmml::vec4f::ONE) {} Trapezocube(float widthfront, float widthback, float height, float depth, float x, float y, float z, float rotate, const vmml::vec4f &col) { @@ -25,7 +25,7 @@ class Trapezocube float getPosY() {return y;} float getPosZ() {return z;} float getRotate() {return rotate;} - vmml::vec4f getColor() {return color;} + const vmml::vec4f& getColor() {return color;} void setSize(float wf, float wb, float h, float d) { |