mirror of
https://github.com/pret/pmd-red.git
synced 2026-04-23 07:28:10 -05:00
55 lines
947 B
C
55 lines
947 B
C
#ifndef GUARD_SPRITE_H
|
|
#define GUARD_SPRITE_H
|
|
|
|
#include "position.h"
|
|
|
|
// size: 0x8
|
|
struct unkSprite
|
|
{
|
|
// y/affineMode/objMode/mosaic/bpp/shape
|
|
u16 unk0;
|
|
// x/matrixNum/size
|
|
u16 unk2;
|
|
// tileNum/priority/paletteNum
|
|
u16 unk4;
|
|
u16 unk6;
|
|
};
|
|
|
|
// size: 0x8
|
|
struct UnkSpriteLink
|
|
{
|
|
struct UnkSpriteLink *unk0;
|
|
struct unkSprite *unk4;
|
|
};
|
|
|
|
// size: 0x808
|
|
struct SpriteList
|
|
{
|
|
struct UnkSpriteLink sprites[256];
|
|
u32 unk800;
|
|
u32 unk804;
|
|
};
|
|
|
|
// size: 0xC
|
|
struct unkStruct_2039DB0
|
|
{
|
|
u16 unk0;
|
|
s16 unk2;
|
|
s16 unk4;
|
|
u16 unk6;
|
|
u16 unk8;
|
|
u16 unkA;
|
|
};
|
|
|
|
void BlinkSavingIcon(void);
|
|
void CopySpritesToOam(void);
|
|
void InitSprites(void);
|
|
void ResetSprites(bool8);
|
|
void SetSavingIconCoords(struct Position *);
|
|
void sub_8004E8C(struct unkStruct_2039DB0 *);
|
|
void sub_8005180(void);
|
|
|
|
// sprite.s
|
|
extern void AddSprite(struct unkSprite *, s32, u32 *, struct unkStruct_2039DB0 *);
|
|
|
|
#endif // GUARD_SPRITE_H
|