|
DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
|
#include <candleeffect.hpp>
Public Member Functions | |
| void | Initialize () |
| CCandleEffect () | |
| void | SetTexture (CTexture *flame_texture) |
| void | SetScale (float half_width, float half_height) |
| void | SetPosition (float *world) |
| void | Step () |
| void | Draw () |
Public Attributes | |
| int | enabled |
| float | animation_frame |
| CTexture * | texture |
| u32 | unk_0c |
| float | position [4] |
| float | half_width |
| float | half_height |
| u32 | unk_28 |
| u32 | unk_2c |
Animates and draws the camera-facing sprite used for a candle flame.
Definition at line 10 of file candleeffect.hpp.
| CCandleEffect::CCandleEffect | ( | ) |
Constructs a candle effect in its initial state.
Definition at line 18 of file candleeffect.cpp.
| void CCandleEffect::Initialize | ( | ) |
Restores the enabled candle to its initial animation state.
Definition at line 10 of file candleeffect.cpp.
| void CCandleEffect::SetTexture | ( | CTexture * | flame_texture | ) |
Assigns the flame-atlas texture.
Definition at line 22 of file candleeffect.cpp.
| void CCandleEffect::SetScale | ( | float | half_width, |
| float | half_height | ||
| ) |
Sets the flame sprite's world-space half-extents.
Definition at line 26 of file candleeffect.cpp.
| void CCandleEffect::SetPosition | ( | float * | world | ) |
Copies the flame sprite's homogeneous world-space centre.
Definition at line 31 of file candleeffect.cpp.
| void CCandleEffect::Step | ( | ) |
Advances and wraps the fractional flame-atlas frame.
Definition at line 35 of file candleeffect.cpp.
| void CCandleEffect::Draw | ( | ) |
Draws the current flame-atlas cell as an alpha-blended billboard.
Definition at line 43 of file candleeffect.cpp.
| int CCandleEffect::enabled |
Whether the candle sprite can be drawn.
Definition at line 12 of file candleeffect.hpp.
| float CCandleEffect::animation_frame |
Fractional frame within the eight-frame flame cycle.
Definition at line 13 of file candleeffect.hpp.
| CTexture* CCandleEffect::texture |
Texture containing the 4-by-2 flame atlas.
Definition at line 14 of file candleeffect.hpp.
| u32 CCandleEffect::unk_0c |
Definition at line 15 of file candleeffect.hpp.
| float CCandleEffect::position[4] |
Homogeneous world-space centre of the flame.
Definition at line 16 of file candleeffect.hpp.
| float CCandleEffect::half_width |
Half of the sprite's world-space width.
Definition at line 17 of file candleeffect.hpp.
| float CCandleEffect::half_height |
Half of the sprite's world-space height.
Definition at line 18 of file candleeffect.hpp.
| u32 CCandleEffect::unk_28 |
Definition at line 19 of file candleeffect.hpp.
| u32 CCandleEffect::unk_2c |
Definition at line 20 of file candleeffect.hpp.