Rev | Line | |
---|
[1055] | 1 | #pragma once
|
---|
| 2 | #include "RenderTechnique.h"
|
---|
| 3 |
|
---|
| 4 | /**
|
---|
| 5 | @brief Base abstract class of rendering a particle system with the spherical billboard method.
|
---|
| 6 | */
|
---|
| 7 | class HierarchicalParticleSystemTechnique : virtual public RenderTechnique
|
---|
| 8 | {
|
---|
| 9 | public:
|
---|
| 10 | /**
|
---|
| 11 | @brief Constructor.
|
---|
| 12 |
|
---|
| 13 | @param parentRenderable the object to operate on
|
---|
| 14 | @param parentTechniqueGroup the TechniqueGroup this RenderedTechnique is attached to
|
---|
| 15 | */
|
---|
| 16 | HierarchicalParticleSystemTechnique(
|
---|
| 17 | unsigned long startFrame,
|
---|
| 18 | unsigned long impostorUpdateInterval,
|
---|
| 19 | unsigned int impostorResolution,
|
---|
| 20 | bool useDistCalc,
|
---|
| 21 | bool perspectiveRendering,
|
---|
| 22 | ElementaryRenderable* parentRenderable,
|
---|
| 23 | TechniqueGroup* parentTechniqueGroup
|
---|
| 24 | );
|
---|
| 25 | ~HierarchicalParticleSystemTechnique();
|
---|
| 26 |
|
---|
| 27 | void update(unsigned long frameNum);
|
---|
| 28 |
|
---|
| 29 | protected:
|
---|
| 30 | unsigned long impostorUpdateInterval;
|
---|
| 31 | unsigned int impostorResolution;
|
---|
| 32 | /**
|
---|
| 33 | @brief offset in frame number used during update
|
---|
| 34 | */
|
---|
| 35 | unsigned long startFrame;
|
---|
| 36 | bool useDistCalc;
|
---|
| 37 | bool perspectiveRendering;
|
---|
| 38 |
|
---|
| 39 | virtual RenderingRun* createChildPSysRenderingRun()=0;
|
---|
| 40 |
|
---|
| 41 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.