1 | #include "HierarchicalParticleSystemTechnique.h"
|
---|
2 |
|
---|
3 |
|
---|
4 | HierarchicalParticleSystemTechnique::HierarchicalParticleSystemTechnique(
|
---|
5 | unsigned long startFrame,
|
---|
6 | unsigned long impostorUpdateInterval,
|
---|
7 | unsigned int impostorResolution,
|
---|
8 | bool useDistCalc,
|
---|
9 | bool perspectiveRendering,
|
---|
10 | ElementaryRenderable* parentRenderable,
|
---|
11 | TechniqueGroup* parentTechniqueGroup)
|
---|
12 | :RenderTechnique( parentRenderable, parentTechniqueGroup)
|
---|
13 | {
|
---|
14 | this->startFrame = startFrame;
|
---|
15 | this->impostorUpdateInterval = impostorUpdateInterval;
|
---|
16 | this->impostorResolution = impostorResolution;
|
---|
17 | this->useDistCalc = useDistCalc;
|
---|
18 | this->perspectiveRendering = perspectiveRendering;
|
---|
19 | }
|
---|
20 |
|
---|
21 | HierarchicalParticleSystemTechnique::~HierarchicalParticleSystemTechnique()
|
---|
22 | {
|
---|
23 |
|
---|
24 | }
|
---|
25 |
|
---|
26 | void HierarchicalParticleSystemTechnique::update(unsigned long frameNum)
|
---|
27 | {
|
---|
28 | sharedRuns->updateRun(ILLUMRUN_HPP_IMPOSTOR, frameNum);
|
---|
29 | }
|
---|
30 |
|
---|
31 | void HierarchicalParticleSystemTechnique::runChanged(RenderingRunType runType, RenderingRun* run)
|
---|
32 | {
|
---|
33 | if(runType == ILLUMRUN_HPP_IMPOSTOR)
|
---|
34 | impostorChanged(run);
|
---|
35 | }
|
---|
36 |
|
---|
37 | void HierarchicalParticleSystemTechnique::runUpdated(RenderingRunType runType, RenderingRun* run)
|
---|
38 | {
|
---|
39 | if(runType == ILLUMRUN_HPP_IMPOSTOR)
|
---|
40 | impostorUpdated(run);
|
---|
41 | }
|
---|
42 |
|
---|