]> git.tdb.fi Git - libs/gl.git/commitdiff
Add functions to retrieve material properties
authorMikko Rasa <tdb@tdb.fi>
Tue, 1 Jan 2008 21:39:13 +0000 (21:39 +0000)
committerMikko Rasa <tdb@tdb.fi>
Tue, 1 Jan 2008 21:39:13 +0000 (21:39 +0000)
source/material.h

index 0e0033b46e0f3544d477f76185b4f8956701c5ce..b0c9cd0d3510c2e2d76612bea410f8b13670423a 100644 (file)
@@ -51,6 +51,11 @@ public:
        void set_specular(const Color &s);
        void set_emission(const Color &e);
        void set_shininess(float s);
+       const Color &get_ambient() const { return ambient; }
+       const Color &get_diffuse() const { return diffuse; }
+       const Color &get_specular() const { return specular; }
+       const Color &get_emission() const { return emission; }
+       float get_shininess() const { return shininess; }
        void apply() const;
 };