Changeset 1001 for GTP/trunk/Lib/Vis/Preprocessing/src/Material.h
- Timestamp:
- 06/05/06 23:14:04 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Material.h
r860 r1001 33 33 RgbColor mAmbientColor; 34 34 35 Material() 35 Material(): mId(0) 36 36 { 37 37 } 38 38 39 Material(const int id): mId(id) 40 { 41 } 42 39 43 Material(const RgbColor &color):mDiffuseColor(color), 40 44 mAmbientColor(color), 41 mSpecularColor(0,0,0) 45 mSpecularColor(0,0,0), mId(0) 42 46 { 43 47 } … … 45 49 friend Material RandomMaterial(); 46 50 51 /** Returns unique material id. 52 */ 53 int GetId() const 54 { 55 return mId; 56 } 57 58 protected: 59 60 // unique material id 61 int mId; 47 62 }; 48 63
Note: See TracChangeset
for help on using the changeset viewer.