Changeset 2755 for GTP/trunk/App/Demos/Vis/CHC_revisited/Material.h
- Timestamp:
- 06/12/08 01:09:23 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/CHC_revisited/Material.h
r2751 r2755 6 6 { 7 7 8 8 9 class RgbColor 9 10 { 11 10 12 public: 13 11 14 float r, g, b; 12 15 … … 44 47 { 45 48 public: 49 46 50 RgbColor mDiffuseColor; 47 51 RgbColor mSpecularColor; 48 52 RgbColor mAmbientColor; 49 53 50 Material(): mId(0) 51 { 52 } 54 Material(); 53 55 54 Material(const int id): mId(id) 55 { 56 } 56 Material(const int id); 57 57 58 Material(const RgbColor &color):mDiffuseColor(color), 59 mAmbientColor(color), 60 mSpecularColor(0,0,0), mId(0) 61 { 62 } 63 64 friend Material RandomMaterial(); 65 58 Material(const RgbColor &color); 66 59 /** Returns unique material id. 67 60 */ 68 int GetId() const 69 { 70 return mId; 71 } 61 int GetId() const; 62 63 friend Material RandomMaterial(); 72 64 73 65 protected:
Note: See TracChangeset
for help on using the changeset viewer.