source: GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/OgreTechniqueGroup.cpp @ 2320

Revision 2320, 1.1 KB checked in by szirmay, 18 years ago (diff)
Line 
1#include "OgreTechniqueGroup.h"
2
3
4OgreTechniqueGroup::~OgreTechniqueGroup()
5{
6        std::vector<OgreRenderTechnique*>::iterator it = renderTechniques.begin();
7        std::vector<OgreRenderTechnique*>::iterator itend = renderTechniques.end();
8        while(it != itend)
9        {
10                OgreRenderTechnique* rt = *it;
11                delete rt;
12                it++;
13        }       
14        renderTechniques.clear();       
15}
16
17void OgreTechniqueGroup::addRenderTechnique(RenderTechnique* technique)
18{
19        renderTechniques.push_back( technique->asOgreRenderTechnique() );
20}
21
22void OgreTechniqueGroup::update(unsigned long frameNum)
23{
24        for(unsigned int i = 0; i < renderTechniques.size(); i++ )
25        {
26                renderTechniques.at(i)->update(frameNum);
27        }
28}
29
30void OgreTechniqueGroup::runChanged(RenderingRunType runType, RenderingRun* run)
31{
32        for(unsigned int i = 0; i < renderTechniques.size(); i++ )
33        {
34                renderTechniques.at(i)->runChanged(runType, run);
35        }
36}
37
38void OgreTechniqueGroup::runUpdated(RenderingRunType runType, RenderingRun* run)
39{
40        for(unsigned int i = 0; i < renderTechniques.size(); i++ )
41        {
42                renderTechniques.at(i)->runUpdated(runType, run);
43        }
44}
Note: See TracBrowser for help on using the repository browser.