blob: 180105f0f64b5e54088a98c14f6ef4f1866ab2c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#ifndef BACKGROUNDANIMATIONS_H
#define BACKGROUNDANIMATIONS_H
#include "global.h"
typedef enum {
BG_ANIM_DEFAULT = 0,
BG_ANIM_PALETTE = 16,
BG_ANIM_MULTIPLE = 128,
} BgAnimFlags;
typedef struct {
u16 vramOffset;
u8 gfxSize;
u8 flags; /**< @see BgAnimFlags */
u32 gfxOffset;
} BgAnimationGfx;
typedef struct {
const BgAnimationGfx* gfx;
u32 unk_4;
} BgAnimationFrame;
typedef struct {
const BgAnimationFrame* currentFrame;
u16 unk_4;
u16 timer;
} BgAnimation;
#define MAX_BG_ANIMATIONS 8
extern BgAnimation gBgAnimations[MAX_BG_ANIMATIONS];
extern const u16* const gUnk_080B755C[];
extern const u16 gUnk_080B77C0[];
extern void LoadBgAnimations(u16*);
extern void ClearBgAnimations(void);
#endif // BACKGROUNDANIMATIONS_H
|