DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
C3DSprite Class Reference

#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
 

Detailed Description

Draws a textured rectangle positioned in three-dimensional world space.

Definition at line 163 of file effect.hpp.

Constructor & Destructor Documentation

◆ C3DSprite()

C3DSprite::C3DSprite ( )

Constructs a sprite with an empty source rectangle and no texture.

Mangled name:
__ct__9C3DSpriteFv
Address:
0x183760
Size:
0x40

Definition at line 5538 of file editloop.cpp.

Member Function Documentation

◆ Draw()

void C3DSprite::Draw ( )

Draws the sprite when its texture and projected rectangle are valid.

Mangled name:
Draw__9C3DSpriteFv
Address:
0x163D20
Size:
0x170

Definition at line 14 of file effect.cpp.

◆ Initialize()

void C3DSprite::Initialize ( )

Clears sprite rendering state while preserving its placement and scale.

Mangled name:
Initialize__9C3DSpriteFv
Address:
0x163E90
Size:
0x4C

Definition at line 54 of file effect.cpp.

Member Data Documentation

◆ position

float C3DSprite::position[4]

Homogeneous world-space centre of the sprite.

Definition at line 165 of file effect.hpp.

◆ half_width

float C3DSprite::half_width

Half of the sprite's world-space width.

Definition at line 166 of file effect.hpp.

◆ half_height

float C3DSprite::half_height

Half of the sprite's world-space height.

Definition at line 167 of file effect.hpp.

◆ texture

CTexture* C3DSprite::texture

Texture drawn by the sprite.

Definition at line 168 of file effect.hpp.

◆ unk_1c

u32 C3DSprite::unk_1c

Definition at line 169 of file effect.hpp.

◆ texel

CRect_i_ C3DSprite::texel

Rectangle sampled from the texture.

Definition at line 170 of file effect.hpp.

◆ colour

spRGBA C3DSprite::colour

Colour and opacity applied to the sprite.

Definition at line 171 of file effect.hpp.

◆ alpha_blend

int C3DSprite::alpha_blend

Whether the sprite temporarily enables alpha blending.

Definition at line 172 of file effect.hpp.

◆ disable_z_write

int C3DSprite::disable_z_write

Whether the sprite temporarily disables depth writes.

Definition at line 173 of file effect.hpp.

◆ unk_3c

u32 C3DSprite::unk_3c

Definition at line 174 of file effect.hpp.