Line | |
---|
1 | #include "OgreRenderTechnique.h"
|
---|
2 | #include "OgreTechniqueGroup.h"
|
---|
3 | #include "OgrePass.h"
|
---|
4 |
|
---|
5 | using namespace Ogre;
|
---|
6 |
|
---|
7 | OgreRenderTechnique::OgreRenderTechnique(
|
---|
8 | Pass* pass,
|
---|
9 | OgreRenderable* parentRenderable,
|
---|
10 | OgreTechniqueGroup* parentTechniqueGroup)
|
---|
11 | :RenderTechnique(parentRenderable, parentTechniqueGroup)
|
---|
12 | {
|
---|
13 | this->pass = pass;
|
---|
14 | this->parentOgreRenderable = parentRenderable;
|
---|
15 | this->parentOgreTechniqueGroup = parentTechniqueGroup;
|
---|
16 | this->sharedRuns = parentTechniqueGroup->getSharedRuns();
|
---|
17 | }
|
---|
18 |
|
---|
19 | OgreRenderTechnique::~OgreRenderTechnique()
|
---|
20 | {
|
---|
21 |
|
---|
22 | }
|
---|
23 |
|
---|
24 | void RenderTechniqueFactory::parseParams(IllumTechniqueParams* params)
|
---|
25 | {
|
---|
26 | NameValuePairList parameters = params->getParams();
|
---|
27 |
|
---|
28 | NameValuePairList::iterator it = parameters.begin();
|
---|
29 | NameValuePairList::iterator itend = parameters.end();
|
---|
30 |
|
---|
31 | while(it != itend)
|
---|
32 | {
|
---|
33 | AttribParserList::iterator i = attributeParsers.find(it->first);
|
---|
34 |
|
---|
35 | if(i == attributeParsers.end())
|
---|
36 | {
|
---|
37 | LogManager::getSingleton().logMessage("Unknown parameter type found while parsing illummodule technique params!");
|
---|
38 | }
|
---|
39 | else
|
---|
40 | {
|
---|
41 | i->second(it->second, this);
|
---|
42 | }
|
---|
43 |
|
---|
44 | it++;
|
---|
45 | }
|
---|
46 | }
|
---|
47 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.