csProcFire Class Reference
Fire. More...
#include <prfire.h>
Inheritance diagram for csProcFire:

Public Methods | |
csProcFire (int w=128, int h=128) | |
Create a new texture. | |
virtual bool | PrepareAnim () |
Prepare the animation for use. | |
virtual void | Animate (csTicks current_time) |
Draw the next frame. | |
void | SetSingleFlame (bool enable, int halfflame) |
set single flame mode with halfflamewidth or disable single flame. | |
bool | GetSingleFlame () const |
is the flame in singleflame(true) or in leftright tiling mode? | |
virtual void | SetPossibleBurn (int possburn) |
Set animation parameter: possible burn (0..) Try possburn 3=wood,90=oil,255=max. | |
virtual int | GetPossibleBurn () |
Get possible burn. | |
virtual void | SetAdditionalBurn (int addburn) |
Set animation parameter: additional burn (0..) Try addburn=1..5 or so. | |
virtual int | GetAdditionalBurn () |
Get additional burn. | |
virtual void | SetContinuedBurn (int contburn) |
Set animation parameter: continued burn (0..) Try 80. | |
virtual int | GetContinuedBurn () |
Get continued burn. | |
virtual void | SetSmoothing (int smoothing) |
Set animation parameter: smoothing factor (0..) Try 2. | |
virtual int | GetSmoothing () |
Get smoothing factor. | |
virtual void | SetExtinguish (int extinguish) |
Set animation parameter: burning down param Try 3*256/height. | |
virtual int | GetExtinguish () |
Get burning down param. | |
virtual void | SetSingleFlameMode (bool enable) |
Set single flame mode. | |
virtual bool | GetSingleFlameMode () |
Get single flame mode. | |
virtual void | SetHalfBase (int halfbase) |
Set animation parameter: 1/2 size of flame base, from middle bottom sideways. | |
virtual int | GetHalfBase () |
Get 1/2 size of flame base. | |
virtual void | SetPostSmoothing (int amount) |
Set whether to smooth the whole image again after calculating an iteration. | |
virtual int | GetPostSmoothing () |
Get post smoothing value. | |
virtual void | SetPalette (const csGradient gradient) |
Set the colors used by the flame. |
Detailed Description
Fire.
Definition at line 36 of file prfire.h.
Constructor & Destructor Documentation
|
Create a new texture.
|
Member Function Documentation
|
Draw the next frame.
Implements csProcTexture. |
|
Get additional burn.
Implements iFireTexture. |
|
Get continued burn.
Implements iFireTexture. |
|
Get burning down param.
Implements iFireTexture. |
|
Get 1/2 size of flame base.
Implements iFireTexture. |
|
Get possible burn.
Implements iFireTexture. |
|
Get post smoothing value.
Implements iFireTexture. |
|
is the flame in singleflame(true) or in leftright tiling mode?
|
|
Get single flame mode.
Implements iFireTexture. |
|
Get smoothing factor.
Implements iFireTexture. |
|
Prepare the animation for use. This needs to be done after the texture has been prepared. Reimplemented from csProcTexture. |
|
Set animation parameter: additional burn (0..) Try addburn=1..5 or so.
Implements iFireTexture. |
|
Set animation parameter: continued burn (0..) Try 80.
Implements iFireTexture. |
|
Set animation parameter: burning down param Try 3*256/height.
Implements iFireTexture. |
|
Set animation parameter: 1/2 size of flame base, from middle bottom sideways.
Implements iFireTexture. |
|
Set the colors used by the flame. Position 0 = darkest areas (background, actually), position 1 = brightest areas. Implements iFireTexture. |
|
Set animation parameter: possible burn (0..) Try possburn 3=wood,90=oil,255=max.
Implements iFireTexture. |
|
Set whether to smooth the whole image again after calculating an iteration.
Implements iFireTexture. |
|
set single flame mode with halfflamewidth or disable single flame.
|
|
Set single flame mode.
Implements iFireTexture. |
|
Set animation parameter: smoothing factor (0..) Try 2.
Implements iFireTexture. |
The documentation for this class was generated from the following file:
- cstool/prfire.h
Generated for Crystal Space by doxygen 1.2.18