projects
/
retrocrawl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
sprites in progress
[retrocrawl]
/
src
/
sprite.h
1
#ifndef SPRITE_H_
2
#define SPRITE_H_
3
4
#include <stdint.h>
5
6
struct sprite {
7
int16_t x, y;
8
uint16_t width, height;
9
int16_t origx, origy;
10
11
/* img/mask used for blitter sprites */
12
void *img, *mask;
13
14
/* hardware sprite data */
15
uint16_t *hwspr[8];
16
uint8_t hwslices;
17
};
18
19
void begin_sprites(void);
20
void end_sprites(void);
21
void draw_sprite(struct sprite *s, int x, int y);
22
23
#endif /* SPRITE_H_ */