Changeset 3042 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Material.h
- Timestamp:
- 10/19/08 01:33:16 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Material.h
r3036 r3042 15 15 16 16 17 /** Class representing an rgba color vector. 18 */ 17 19 class RgbaColor 18 20 { … … 36 38 37 39 38 39 class Material 40 /** This class represents a certain rendering technique of a shape. 41 A material consists of one or more techniques 42 */ 43 class Technique 40 44 { 41 45 friend class ResourceManager; … … 45 49 /** Sets default material (ambient intensity 0.2f, diffuse intensity 1.0f) 46 50 */ 47 Material();51 Technique(); 48 52 49 ~ Material();53 ~Technique(); 50 54 /** Sets ambient and diffuse color to color 51 55 */ 52 Material(const RgbaColor &color); 53 54 friend Material RandomMaterial(); 56 Technique(const RgbaColor &color); 55 57 56 58 inline Texture *GetTexture() const { return mTexture; } … … 73 75 inline bool IsAlphaTestEnabled() const { return mAlphaTestEnabled; } 74 76 inline bool IsCullFaceEnabled() const { return mCullFaceEnabled; } 75 /** Renders this material.77 /** Renders this technique. 76 78 */ 77 79 void Render(RenderState *state); … … 115 117 116 118 117 extern Material RandomMaterial(); 119 /** A material consists of one or more techniques. 120 */ 121 class Material 122 { 123 public: 124 /** Default constructor creating one default technique. 125 */ 126 Material(); 127 128 ~Material(); 129 /** Renders this material. 130 */ 131 void Render(RenderState *state); 132 133 void AddTechnique(Technique *t); 134 135 Technique *GetDefaultTechnique() const; 136 137 Technique *GetTechnique(int i) const; 138 139 int GetNumTechniques() const; 140 141 142 143 protected: 144 145 TechniqueContainer mTechniques; 146 }; 118 147 119 148 }
Note: See TracChangeset
for help on using the changeset viewer.