Changeset 1055 for GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/OgreIlluminationManager.h
- Timestamp:
- 06/26/06 09:52:08 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/OgreIlluminationManager.h
r949 r1055 13 13 #include "OgreDepthShadowMapRenderingRun.h" 14 14 #include "OgreDepthShadowRecieverRenderTechnique.h" 15 #include "OgreFireRenderTechnique.h" 15 16 16 17 … … 51 52 */ 52 53 BillboardSet* findRenderableInParticleSystem(ParticleSystem* system); 54 void preAllUpdates(); 55 void postAllUpdates(); 53 56 54 57 /** … … 62 65 */ 63 66 float maxRad; 67 std::map<RenderingRunType,float> maxRads; 64 68 /** 65 69 @brief The camera attached to the player. … … 106 110 std::map<String, OgreSharedRuns*> perLightRuns; 107 111 108 112 std::map<GlobalTargetType, GlobalUseRenderTarget*> globalTargets; 113 114 std::vector<UpdateListener*> updateListeners; 115 109 116 public: 110 117 118 void addUpdateListener(UpdateListener* l){updateListeners.push_back(l);} 111 119 /** 112 120 @brief registers a RenderTechniqueFactory … … 120 128 */ 121 129 float getMaxJoinRadius(){return maxRad;} 130 float getMaxJoinRadius(RenderingRunType type){return maxRads[type];} 122 131 /** 123 132 @brief sets the maximum bounding sphere radius with two SharedRuns can be joined. 124 133 */ 125 void setMaxJoinRadius(float rad){maxRad = rad;} 134 void setMaxJoinRadius(float rad) 135 { 136 std::map<RenderingRunType,float> ::iterator it = maxRads.begin(); 137 std::map<RenderingRunType,float> ::iterator itend = maxRads.end(); 138 139 maxRad = rad; 140 141 while(it != itend) 142 { 143 (*it).second = maxRad; 144 it++; 145 } 146 147 } 148 void setMaxJoinRadius(RenderingRunType type, float rad){maxRads[type] = rad;} 126 149 /** 127 150 @brief Returns the one and only OgreIlluminationManager instance. … … 146 169 */ 147 170 void initTechniques(Entity* e); 171 /** 172 @brief searches for RenderTechniques in materials and creates them for a Billboardset. 173 */ 174 void initTechniques(BillboardSet* bbs, ParticleSystem* sys); 148 175 /** 149 176 @brief Returns a pointer to the player camera. … … 224 251 */ 225 252 RenderingRun* getGlobalRun(RenderingRunType runType); 253 254 GlobalUseRenderTarget* getGlobalTarget(GlobalTargetType type); 255 void addGlobalTarget(GlobalTargetType type, GlobalUseRenderTarget* target); 226 256 /** 227 257 @brief Updates a global RenderingRun with the given type.
Note: See TracChangeset
for help on using the changeset viewer.