Changeset 2756 for GTP/trunk/App/Demos/Vis/CHC_revisited/Material.h
- Timestamp:
- 06/13/08 18:06:32 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/CHC_revisited/Material.h
r2755 r2756 6 6 { 7 7 8 class Texture; 8 9 9 10 class RgbColor … … 54 55 Material(); 55 56 56 Material( constint id);57 Material(int id); 57 58 58 59 Material(const RgbColor &color); … … 63 64 friend Material RandomMaterial(); 64 65 66 Texture *GetTexture() const { return mTexture; } 67 68 void SetTexture(Texture *texture) { mTexture = texture; } 69 /** Renders this material. 70 */ 71 void Render(); 72 65 73 protected: 66 74 67 // unique material id 75 /** Initialize the material with default values 76 */ 77 void InitMaterial(); 78 79 /// unique material id 68 80 int mId; 81 /// the assciated texture 82 Texture *mTexture; 69 83 }; 70 84
Note: See TracChangeset
for help on using the changeset viewer.