1 | #include "CubeMapRenderTechnique.h"
|
---|
2 |
|
---|
3 |
|
---|
4 | CubeMapRenderTechnique::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 |
|
---|
34 | void CubeMapRenderTechnique::runChanged(RenderingRunType runType, RenderingRun* run)
|
---|
35 | {
|
---|
36 | if(runType == ILLUMRUN_CUBEMAP)
|
---|
37 | cubeMapRunChanged(run);
|
---|
38 | }
|
---|
39 | void CubeMapRenderTechnique::runUpdated(RenderingRunType runType, RenderingRun* run)
|
---|
40 | {
|
---|
41 | if(runType == ILLUMRUN_CUBEMAP)
|
---|
42 | cubeMapRunUpdated(run);
|
---|
43 | }
|
---|
44 |
|
---|
45 | CubeMapRenderTechnique::~CubeMapRenderTechnique()
|
---|
46 | {
|
---|
47 |
|
---|
48 | }
|
---|