Ignore:
Timestamp:
06/26/06 09:52:08 (18 years ago)
Author:
szirmay
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/OgreIlluminationManager.h

    r949 r1055  
    1313#include "OgreDepthShadowMapRenderingRun.h" 
    1414#include "OgreDepthShadowRecieverRenderTechnique.h" 
     15#include "OgreFireRenderTechnique.h" 
    1516 
    1617 
     
    5152        */ 
    5253        BillboardSet* findRenderableInParticleSystem(ParticleSystem* system); 
     54        void preAllUpdates(); 
     55        void postAllUpdates(); 
    5356 
    5457        /** 
     
    6265        */ 
    6366        float maxRad; 
     67        std::map<RenderingRunType,float> maxRads; 
    6468        /** 
    6569                @brief The camera attached to the player. 
     
    106110        std::map<String, OgreSharedRuns*> perLightRuns; 
    107111 
    108          
     112        std::map<GlobalTargetType, GlobalUseRenderTarget*> globalTargets; 
     113 
     114        std::vector<UpdateListener*> updateListeners; 
     115 
    109116public: 
    110117 
     118        void addUpdateListener(UpdateListener* l){updateListeners.push_back(l);} 
    111119        /** 
    112120                @brief registers a RenderTechniqueFactory 
     
    120128        */ 
    121129        float getMaxJoinRadius(){return maxRad;} 
     130        float getMaxJoinRadius(RenderingRunType type){return maxRads[type];} 
    122131        /** 
    123132                @brief sets the maximum bounding sphere radius with two SharedRuns can be joined. 
    124133        */ 
    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;} 
    126149        /** 
    127150                @brief Returns the one and only OgreIlluminationManager instance. 
     
    146169        */ 
    147170        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); 
    148175        /** 
    149176                @brief Returns a pointer to the player camera. 
     
    224251        */ 
    225252        RenderingRun* getGlobalRun(RenderingRunType runType); 
     253 
     254        GlobalUseRenderTarget* getGlobalTarget(GlobalTargetType type); 
     255        void addGlobalTarget(GlobalTargetType type, GlobalUseRenderTarget* target); 
    226256        /** 
    227257                @brief Updates a global RenderingRun with the given type. 
Note: See TracChangeset for help on using the changeset viewer.