1 | #include "ColorCubeMapRenderTechnique.h"
|
---|
2 |
|
---|
3 |
|
---|
4 | ColorCubeMapRenderTechnique::ColorCubeMapRenderTechnique(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 | ElementaryRenderable* parentRenderable,
|
---|
15 | TechniqueGroup* parentTechniqueGroup)
|
---|
16 |
|
---|
17 | :CubeMapRenderTechnique( startFrame, cubeMapUpdateInterval, cubeMapResolution,
|
---|
18 | useDistCalc, useFaceAngleCalc, distTolerance, angleTolerance,
|
---|
19 | updateAllFace, renderSelf, renderEnvironment,
|
---|
20 | parentRenderable, parentTechniqueGroup),
|
---|
21 | RenderTechnique(parentRenderable, parentTechniqueGroup)
|
---|
22 | {
|
---|
23 |
|
---|
24 | }
|
---|
25 |
|
---|
26 | ColorCubeMapRenderTechnique::~ColorCubeMapRenderTechnique()
|
---|
27 | {
|
---|
28 |
|
---|
29 | }
|
---|
30 |
|
---|
31 | void ColorCubeMapRenderTechnique::runChanged(RenderingRunType runType, RenderingRun* run)
|
---|
32 | {
|
---|
33 | if(runType == ILLUMRUN_COLOR_CUBEMAP)
|
---|
34 | colorCubeMapRunChanged(run);
|
---|
35 | }
|
---|
36 |
|
---|
37 | void ColorCubeMapRenderTechnique::update(unsigned long frameNum)
|
---|
38 | {
|
---|
39 | sharedRuns->updateRun(ILLUMRUN_COLOR_CUBEMAP, frameNum);
|
---|
40 | }
|
---|