![]() |
Public API Reference |
#include <prfire.h>
Inheritance diagram for csProcFire:
Public Methods | |
csProcFire (int w=128, int h=128) | |
Create a new texture. More... | |
virtual bool | PrepareAnim () |
Prepare the animation for use. More... | |
virtual void | Animate (csTicks current_time) |
Draw the next frame. More... | |
void | SetSingleFlame (bool enable, int halfflame) |
set single flame mode with halfflamewidth or disable single flame. More... | |
bool | GetSingleFlame () const |
is the flame in singleflame(true) or in leftright tiling mode? More... | |
virtual void | SetPossibleBurn (int possburn) |
Set animation parameter: possible burn (0..) Try possburn 3=wood,90=oil,255=max. More... | |
virtual int | GetPossibleBurn () |
Get possible burn. More... | |
virtual void | SetAdditionalBurn (int addburn) |
Set animation parameter: additional burn (0..) Try addburn=1..5 or so. More... | |
virtual int | GetAdditionalBurn () |
Get additional burn. More... | |
virtual void | SetContinuedBurn (int contburn) |
Set animation parameter: continued burn (0..) Try 80. More... | |
virtual int | GetContinuedBurn () |
Get continued burn. More... | |
virtual void | SetSmoothing (int smoothing) |
Set animation parameter: smoothing factor (0..) Try 2. More... | |
virtual int | GetSmoothing () |
Get smoothing factor. More... | |
virtual void | SetExtinguish (int extinguish) |
Set animation parameter: burning down param Try 3*256/height. More... | |
virtual int | GetExtinguish () |
Get burning down param. More... | |
virtual void | SetSingleFlameMode (bool enable) |
Set single flame mode. More... | |
virtual bool | GetSingleFlameMode () |
Get single flame mode. More... | |
virtual void | SetHalfBase (int halfbase) |
Set animation parameter: 1/2 size of flame base, from middle bottom sideways. More... | |
virtual int | GetHalfBase () |
Get 1/2 size of flame base. More... | |
virtual void | SetPostSmoothing (int amount) |
Set whether to smooth the whole image again after calculating an iteration. More... | |
virtual int | GetPostSmoothing () |
Get post smoothing value. More... | |
virtual void | SetPalette (const csGradient gradient) |
Set the colors used by the flame. More... |
Definition at line 34 of file prfire.h.
|
Create a new texture.
|
|
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. |