- Timestamp:
- 04/25/06 09:27:16 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OGRE/trunk/ogre_changes/Ogre1.2/OgreMain/include/OgrePass.h
r768 r812 34 34 35 35 namespace Ogre { 36 37 #ifdef GAMETOOLS_ILLUMINATION_MODULE 38 39 class IllumTechniqueParams 40 { 41 String techniqueType; 42 NameValuePairList params; 43 44 public: 45 46 void setTypeName(String& type){ techniqueType = type;} 47 void addParam(String& param, String& value) 48 { 49 params[param] = value; 50 } 51 52 String& getTypeName(){return techniqueType;} 53 NameValuePairList& getParams(){return params;} 54 }; 55 56 #endif 36 57 /** Class defining a single pass of a Technique (of a Material), ie 37 58 a single rendering call. … … 1153 1174 #ifdef GAMETOOLS_ILLUMINATION_MODULE 1154 1175 public: 1176 1155 1177 void setActive(bool active){mActive = active;} 1156 1178 bool isActive() const {return mActive;} 1179 1180 void addIllumTechniqueParams(IllumTechniqueParams* params) 1181 { 1182 illumTechniques.push_back(params); 1183 } 1184 std::vector<IllumTechniqueParams*>& getIllumTechniques() 1185 { 1186 return illumTechniques; 1187 } 1188 1157 1189 protected: 1190 1158 1191 bool mActive; 1192 1193 std::vector<IllumTechniqueParams*> illumTechniques; 1159 1194 #endif 1160 1195 };
Note: See TracChangeset
for help on using the changeset viewer.