23 #define SPR_ROTSCL_SEL(x) ((unsigned int)(x) << 17)
24 #define SPR_PRIO(x) ((unsigned int)(x) & 3)
36 struct hwsprite hwspr[8];
40 void spr_setup(int xtiles, int ytiles, unsigned char *pixels, unsigned char *cmap);
43 #define spr_oam_clear(oam, idx) spr_oam(oam, idx, 0, 0, 160, 0)
44 void spr_oam(uint16_t *oam, int idx, int spr, int x, int y, unsigned int flags);
45 void spr_spr_oam(uint16_t *oam, int idx, struct sprite *spr);
47 /* idx is the rotation/scale parameter index (0-31), not the sprite index */
48 void spr_transform(uint16_t *oam, int idx, int16_t *mat);
51 #endif /* SPRITE_H_ */