From: Mikko Rasa Date: Tue, 1 Jan 2008 21:39:13 +0000 (+0000) Subject: Add functions to retrieve material properties X-Git-Tag: 0.9~17 X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=530ace590ddb8024fbffc944d006aae7876a25f9;p=libs%2Fgl.git Add functions to retrieve material properties --- diff --git a/source/material.h b/source/material.h index 0e0033b4..b0c9cd0d 100644 --- a/source/material.h +++ b/source/material.h @@ -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; };