Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef _SCROLL_H_
- #define _SCROLL_H_ 1
- typedef struct
- {
- u16 width;
- u16 height;
- u16 nbColors;
- u32 ptrPal;
- u16 nbTiles;
- u32 ptrTiles;
- u16 nbLayers;
- u32 *maps;
- }
- MAPPY_RES;
- typedef struct
- {
- s32 x;
- s32 y;
- MAPPY_RES *res;
- u8 pal;
- u16 vram;
- u16 plan;
- u8 level;
- s8 scrollH;
- s8 scrollV;
- s32 plan_x;
- s32 plan_y;
- }
- SCROLL;
- u16 scroll_init ( u16 plan, MAPPY_RES *res, u16 pal );
- void scroll_show ( u16 plan );
- void scroll_move ( u16 plan, s8 *x, s8 *y );
- s8 scroll_move_x ( u16 plan, s8 value );
- s8 scroll_move_y ( u16 plan, s8 value );
- void scroll_update ( u16 plan );
- void scroll_repeat ( u16 plan, BOOL x, BOOL y );
- void scroll_repeat_x ( u16 plan, BOOL repeat );
- void scroll_repeat_y ( u16 plan, BOOL repeat );
- static s32 _trunc ( s32 value, s32 max );
- static void _col ( SCROLL scr, s32 column );
- static void _row ( SCROLL scr, s32 row );
- //static s8 _limits ( BOOL repeat, s16 pos, s8 value, u16 length, u16 screen );
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement