|
DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
|
#include <spritetable.hpp>
Public Member Functions | |
| CSpriteTable () | |
| void | DrawTable () |
| void | AddTable (int x, int y, MG_SPRITE *sprite, int layer, int align_flags) |
| void | AddTable (int x, int y, sceGsTex0 *tex0, RECT *source, int layer, int align_flags) |
| void | Initialize (SPRITE_TABLE *new_pool, int entry_count, int layer_count) |
| SPRITE_TABLE * | GetNext () |
| void | ClearPointer () |
Public Attributes | |
| SPRITE_TABLE * | pool |
| s32 | list_count |
| s32 | pool_count |
| SPRITE_TABLE * | heads [16] |
| SPRITE_TABLE * | tails [16] |
| SPRITE_TABLE * | current |
| SPRITE_TABLE * | end |
Collects layered sprite commands from a fixed entry pool.
Definition at line 50 of file spritetable.hpp.
|
inline |
Starts with no command pool and no active layers.
Definition at line 63 of file spritetable.hpp.
| void CSpriteTable::DrawTable | ( | ) |
Draws every queued sprite layer and restores the graphics register state.
Definition at line 8 of file spritetable.cpp.
| void CSpriteTable::AddTable | ( | int | x, |
| int | y, | ||
| MG_SPRITE * | sprite, | ||
| int | layer, | ||
| int | align_flags | ||
| ) |
Queues a textured sprite on one clamped layer.
Definition at line 92 of file spritetable.cpp.
| void CSpriteTable::AddTable | ( | int | x, |
| int | y, | ||
| sceGsTex0 * | tex0, | ||
| RECT * | source, | ||
| int | layer, | ||
| int | align_flags | ||
| ) |
Queues a texture rectangle with neutral colour on one clamped layer.
< Sprite handed to the other AddTable.
< Pads the sprite's stack slot to 48 bytes.
Definition at line 153 of file spritetable.cpp.
| void CSpriteTable::Initialize | ( | SPRITE_TABLE * | new_pool, |
| int | entry_count, | ||
| int | layer_count | ||
| ) |
Assigns a command pool and initializes up to sixteen sprite layers.
Definition at line 168 of file spritetable.cpp.
| SPRITE_TABLE * CSpriteTable::GetNext | ( | ) |
Returns the next unused sprite command, or null when the pool is full.
Definition at line 181 of file spritetable.cpp.
| void CSpriteTable::ClearPointer | ( | ) |
Resets every sprite layer and rewinds the command pool.
Definition at line 192 of file spritetable.cpp.
| SPRITE_TABLE* CSpriteTable::pool |
First entry in the command pool.
Definition at line 52 of file spritetable.hpp.
| s32 CSpriteTable::list_count |
Number of active sprite layers.
Definition at line 53 of file spritetable.hpp.
| s32 CSpriteTable::pool_count |
Number of entries in the command pool.
Definition at line 54 of file spritetable.hpp.
| SPRITE_TABLE* CSpriteTable::heads[16] |
Sentinel at the head of each layer.
Definition at line 55 of file spritetable.hpp.
| SPRITE_TABLE* CSpriteTable::tails[16] |
Next free entry for each layer.
Definition at line 56 of file spritetable.hpp.
| SPRITE_TABLE* CSpriteTable::current |
Next unused entry in the command pool.
Definition at line 57 of file spritetable.hpp.
| SPRITE_TABLE* CSpriteTable::end |
Address just past the command pool.
Definition at line 58 of file spritetable.hpp.