From 530ace590ddb8024fbffc944d006aae7876a25f9 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 1 Jan 2008 21:39:13 +0000 Subject: [PATCH] Add functions to retrieve material properties --- source/material.h | 5 +++++ 1 file changed, 5 insertions(+) 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; }; -- 2.43.0