-
Notifications
You must be signed in to change notification settings - Fork 5
/
nmar.h
32 lines (26 loc) · 1.13 KB
/
nmar.h
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
/*
* Copyright © 2011 magical
*
* This file is part of spriterip; it is licensed under the GNU GPLv3
* and comes with NO WARRANTY. See rip.c for details.
*/
#ifndef NMAR_H
#define NMAR_H
#include "nitro.h" /* struct format_info, magic_t */
#include "common.h" /* struct coords, u16 */
#include "image.h" /* struct image */
#include "nmcr.h" /* struct NMCR */
#include "ncgr.h" /* struct NCGR */
#include "ncer.h" /* struct NCER */
struct NMAR;
#define NMAR_MAGIC ((magic_t)'NMAR')
extern struct format_info NMAR_format;
extern int nmar_get_cell_count(struct NMAR *self);
extern int nmar_get_period(struct NMAR *self, int acell_index);
extern int nmar_draw_frame(struct NMAR *self, int acell_index, int frame_index, int tick,
struct NMCR *nmcr, struct NANR *nanr, struct NCER *ncer, struct NCGR *ncgr,
struct image *image, struct coords offset);
extern int nmar_draw(struct NMAR *self, int acell_index, int tick,
struct NMCR *nmcr, struct NANR *nanr, struct NCER *ncer, struct NCGR *ncgr,
struct image *image, struct coords offset);
#endif /* NANR_H */