Line | |
---|
1 | #include "OgreTechniqueGroup.h"
|
---|
2 |
|
---|
3 |
|
---|
4 | OgreTechniqueGroup::~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 |
|
---|
17 | void OgreTechniqueGroup::addRenderTechnique(RenderTechnique* technique)
|
---|
18 | {
|
---|
19 | renderTechniques.push_back( technique->asOgreRenderTechnique() );
|
---|
20 | }
|
---|
21 |
|
---|
22 | void 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 |
|
---|
30 | void 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 |
|
---|
38 | void 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.