source: GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/OgreTechniqueGroup.h @ 790

Revision 790, 943 bytes checked in by szirmay, 19 years ago (diff)
Line 
1#pragma once
2#include "TechniqueGroup.h"
3#include "OgreSharedRuns.h"
4#include "OgreRenderTechnique.h"
5#include "Ogre.h"
6
7using namespace Ogre;
8
9/**
10        @brief Base class of a SharedRuns in an OGRE environment.       
11*/
12class OgreTechniqueGroup : public TechniqueGroup,
13                                                        public UserDefinedObject
14{
15public:
16        //inherited
17        void addRenderTechnique(RenderTechnique* technique);
18        //inherited
19        void update(unsigned long frameNum);
20        //inherited
21        void runChanged(RenderingRunType runType, RenderingRun* run);
22        //inherited
23        void runUpdated(RenderingRunType runType, RenderingRun* run);
24        //inherited
25        void updateBounds()
26        {
27                renderTechniques.at(0)->getParentRenderable()->updateBounds();
28                parentSharedRuns->updateBounds();               
29        }
30
31protected:
32        /**
33                @brief Collection of OgreRenderTechniques
34
35                All messages will be forwarded to each element of this vector.
36        */
37        std::vector<OgreRenderTechnique*> renderTechniques;
38
39};
Note: See TracBrowser for help on using the repository browser.