Changeset 2755 for GTP/trunk/App/Demos/Vis/CHC_revisited/Material.cpp
- 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.cpp
r2751 r2755 8 8 { 9 9 return RgbColor(a + Random(b), a + Random(b), a + Random(b)); 10 } 11 12 13 14 Material::Material(): mId(0) 15 {} 16 17 18 Material::Material(const int id): mId(id) 19 { 20 } 21 22 23 Material::Material(const RgbColor &color):mDiffuseColor(color), 24 mAmbientColor(color), 25 mSpecularColor(0,0,0), mId(0) 26 { 27 } 28 29 30 int Material::GetId() const 31 { 32 return mId; 10 33 } 11 34
Note: See TracChangeset
for help on using the changeset viewer.