|
DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
|
#include <effect.hpp>
Public Member Functions | |
| C3DSprite () | |
| void | Draw () |
| void | Initialize () |
Public Attributes | |
| float | position [4] |
| float | half_width |
| float | half_height |
| CTexture * | texture |
| u32 | unk_1c |
| CRect_i_ | texel |
| spRGBA | colour |
| int | alpha_blend |
| int | disable_z_write |
| u32 | unk_3c |
Draws a textured rectangle positioned in three-dimensional world space.
Definition at line 163 of file effect.hpp.
| C3DSprite::C3DSprite | ( | ) |
Constructs a sprite with an empty source rectangle and no texture.
Definition at line 5538 of file editloop.cpp.
| void C3DSprite::Draw | ( | ) |
Draws the sprite when its texture and projected rectangle are valid.
Definition at line 14 of file effect.cpp.
| void C3DSprite::Initialize | ( | ) |
Clears sprite rendering state while preserving its placement and scale.
Definition at line 54 of file effect.cpp.
| float C3DSprite::position[4] |
Homogeneous world-space centre of the sprite.
Definition at line 165 of file effect.hpp.
| float C3DSprite::half_width |
Half of the sprite's world-space width.
Definition at line 166 of file effect.hpp.
| float C3DSprite::half_height |
Half of the sprite's world-space height.
Definition at line 167 of file effect.hpp.
| CTexture* C3DSprite::texture |
Texture drawn by the sprite.
Definition at line 168 of file effect.hpp.
| u32 C3DSprite::unk_1c |
Definition at line 169 of file effect.hpp.
| CRect_i_ C3DSprite::texel |
Rectangle sampled from the texture.
Definition at line 170 of file effect.hpp.
| spRGBA C3DSprite::colour |
Colour and opacity applied to the sprite.
Definition at line 171 of file effect.hpp.
| int C3DSprite::alpha_blend |
Whether the sprite temporarily enables alpha blending.
Definition at line 172 of file effect.hpp.
| int C3DSprite::disable_z_write |
Whether the sprite temporarily disables depth writes.
Definition at line 173 of file effect.hpp.
| u32 C3DSprite::unk_3c |
Definition at line 174 of file effect.hpp.