source: GTP/branches/IllumWPdeliver2008dec/IlluminationWP/source/IllumModule/src/RenderTechniques/CubeMapRenderTechnique.cpp @ 3255

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