DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
spritetable.hpp
1#pragma once
2
3#include "common.h"
4
5#include <libgraph.h>
6
7#include "rect.hpp"
8
12struct MG_SPRITE {
13 u_long tex0;
15 u8 red;
16 u8 green;
17 u8 blue;
18 u8 alpha;
19};
20
21STATIC_ASSERT(sizeof(MG_SPRITE) == 0x20);
22
27 s16 x;
28 s16 y;
29 s16 width;
30 s16 height;
31 s16 u;
32 s16 v;
33 s16 u_width;
35 s16 red;
36 s16 green;
37 s16 blue;
38 s16 alpha;
39 u8 unk_18[0x10];
40 u_long tex0;
42 u8 unk_34[4];
43};
44
45STATIC_ASSERT(sizeof(SPRITE_TABLE) == 0x38);
46
51public:
64 pool = NULL;
65 list_count = 0;
66 }
67
75 void DrawTable();
76
84 void AddTable(int x, int y, MG_SPRITE *sprite, int layer, int align_flags);
85
93 void AddTable(int x, int y, sceGsTex0 *tex0, RECT *source, int layer, int align_flags);
94
102 void Initialize(SPRITE_TABLE *new_pool, int entry_count, int layer_count);
103
112
120 void ClearPointer();
121};
122
123STATIC_ASSERT(sizeof(CSpriteTable) == 0x94);
SPRITE_TABLE * heads[16]
SPRITE_TABLE * end
void DrawTable()
SPRITE_TABLE * pool
SPRITE_TABLE * current
void ClearPointer()
void AddTable(int x, int y, MG_SPRITE *sprite, int layer, int align_flags)
void Initialize(SPRITE_TABLE *new_pool, int entry_count, int layer_count)
SPRITE_TABLE * tails[16]
SPRITE_TABLE * GetNext()
u_long tex0
Definition title.cpp:61
SPRITE_TABLE * next