mirror of
https://github.com/pret/pokeruby.git
synced 2026-03-21 17:54:19 -05:00
23 lines
719 B
C
23 lines
719 B
C
#ifndef GUARD_UTIL_H
|
|
#define GUARD_UTIL_H
|
|
|
|
#include "sprite.h"
|
|
|
|
//Extracts the upper 16 bits of a 32-bit number
|
|
#define HIHALF(n) (((n) & 0xFFFF0000) >> 16)
|
|
|
|
//Extracts the lower 16 bits of a 32-bit number
|
|
#define LOHALF(n) ((n) & 0xFFFF)
|
|
|
|
extern const u8 gMiscBlank_Gfx[];
|
|
extern const u32 gBitTable[];
|
|
|
|
u8 CreateInvisibleSpriteWithCallback(void (*)(struct Sprite *));
|
|
void StoreWordInTwoHalfwords(u16 *, u32);
|
|
void LoadWordFromTwoHalfwords(u16 *, u32 *);
|
|
u16 CalcCRC16(const u8 *data, int length);
|
|
void DoBgAffineSet(struct BgAffineDstData *dest, u32 texX, u32 texY, s16 scrX, s16 scrY, s16 sx, s16 sy, u16 alpha);
|
|
void CopySpriteTiles(u8 shape, u8 size, u8 *tiles, u16 *tilemap, u8 *output);
|
|
|
|
#endif // GUARD_UTIL_H
|