source: GTP/trunk/Lib/Illum/IllumModule/IllumModule/src/RenderTechniques/ConvolvedCubeMapRenderTechnique.cpp @ 1722

Revision 1722, 1.6 KB checked in by szirmay, 18 years ago (diff)
Line 
1#include "ConvolvedCubeMapRenderTechnique.h"
2
3
4ConvolvedCubeMapRenderTechnique::ConvolvedCubeMapRenderTechnique(unsigned long startFrame,
5                                                                                                unsigned long cubeMapUpdateInterval,
6                                                                                                unsigned int cubeMapResolution,                                                                                         
7                                                                                                unsigned int reducedCubeMapResolution,
8                                                                                                bool useDistCalc,
9                                                                                                bool useFaceAngleCalc,
10                                                                                                float distTolerance,
11                                                                                                float angleTolerance,
12                                                                                                bool updateAllFace,
13                                                                                                bool renderSelf,
14                                                                                                bool renderEnvironment,
15                                                                                                ElementaryRenderable* parentRenderable,
16                                                                                                TechniqueGroup* parentTechniqueGroup)
17                                                                                               
18                                                                                                :CubeMapRenderTechnique( startFrame, cubeMapUpdateInterval, cubeMapResolution,
19                                                                                                                                                                        useDistCalc, useFaceAngleCalc, distTolerance, angleTolerance,
20                                                                                                                                                                        updateAllFace, renderSelf, renderEnvironment,
21                                                                                                                                                                        parentRenderable, parentTechniqueGroup),
22                                                                                                RenderTechnique(parentRenderable, parentTechniqueGroup)
23{
24        this->reducedCubeMapResolution = reducedCubeMapResolution;
25}
26
27ConvolvedCubeMapRenderTechnique::~ConvolvedCubeMapRenderTechnique()
28{
29
30}
31
32void ConvolvedCubeMapRenderTechnique::runChanged(RenderingRunType runType, RenderingRun* run)
33{
34        if(runType == ILLUMRUN_COLOR_CUBEMAP)
35        {
36                colorCubeMapRunChanged(run);
37                return;
38        }       
39        if(runType == ILLUMRUN_REDUCED_CUBEMAP)
40        {
41                reducedCubeMapRunChanged(run);
42                return;
43        }
44}
45
46 void ConvolvedCubeMapRenderTechnique::update(unsigned long frameNum)
47{       
48                sharedRuns->updateRun(ILLUMRUN_COLOR_CUBEMAP, frameNum);       
49                sharedRuns->updateRun(ILLUMRUN_REDUCED_CUBEMAP, frameNum);     
50}
Note: See TracBrowser for help on using the repository browser.