diff options
| author | Tyler McGavran <tyler.taggerung@gmail.com> | 2022-02-02 15:19:51 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-02 13:19:51 -0700 |
| commit | 2f6c87f14ff270a6d47e83f75492250ba232d913 (patch) | |
| tree | bf9f3f08347d250a681ac7a6161050dfe1395b9e /src/textures.h | |
| parent | 42fa90ff7a56348706abd4072fb18713d21bec77 (diff) | |
Identify a credits related struct (#156)
Move some structs around, place them in more meaningful headers
Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
Diffstat (limited to 'src/textures.h')
| -rw-r--r-- | src/textures.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/textures.h b/src/textures.h index 074eae7ad..f6ca363b4 100644 --- a/src/textures.h +++ b/src/textures.h @@ -1,7 +1,24 @@ #ifndef TEXTURES_H #define TEXTURES_H -#include "common_structs.h" +#include "PR/ultratypes.h" + +typedef struct { + /* 0x00 */ s16 type; + /* 0x02 */ s16 unused1; + /* 0x04 */ u64 *textureData; // This should be interpreted as a segmented address + /* 0x08 */ s16 width; + /* 0x0A */ s16 height; + /* 0x0C */ s16 dX; + /* 0x0D */ s16 dY; + /* 0x10 */ s16 size; // This size is NOT equal to width*height. Its likely the size of the compressed texture + /* 0x12 */ s16 unused2; +} MkTexture; // size = 0x14 + +typedef struct { + /* 0x00 */ MkTexture *mk64Texture; // This should be interpreted as a segmented address + /* 0x04 */ s32 frame_length; +} MkAnimation; // size = 0x8 extern MkTexture D_02000000[2]; extern MkTexture D_02000028[2]; |
