OSDN Git Service

sprite xfer ok
[motonesemu/motonesemu.git] / emulator / ppucore / sprite.h
1 #ifndef __sprite_h__
2 #define __sprite_h__
3
4 /*
5  * NES is little endian.
6  * low bit comes first.
7  * high bit follows.
8  * */
9 struct sprite_attr {
10     unsigned int palette    :2;
11     unsigned int unused     :3;
12     unsigned int priority   :1;
13     unsigned int flip_h     :1;
14     unsigned int flip_v     :1;
15 } __attribute__ ((packed));
16
17 #endif /*__sprite_h__*/
18