1 /* 2 * xrick/include/sprites.h 3 * 4 * Copyright (C) 1998-2002 BigOrno (bigorno@bigorno.net). All rights reserved. 5 * 6 * The use and distribution terms for this software are contained in the file 7 * named README, which can be found in the root of this distribution. By 8 * using this software in any fashion, you are agreeing to be bound by the 9 * terms of this license. 10 * 11 * You must not remove this notice, or any other, from this software. 12 */ 13 14 /* 15 * NOTES -- PC version 16 * 17 * A sprite consists in 4 columns and 0x15 rows of (U16 mask, U16 pict), 18 * each pair representing 8 pixels (cga encoding, two bits per pixels). 19 * Sprites are stored in 'sprites.bin' and are loaded by spr_init. Memory 20 * is freed by spr_shutdown. 21 * 22 * There are four sprites planes. Plane 0 is the raw content of 'sprites.bin', 23 * and planes 1, 2 and 3 contain copies of plane 0 with all sprites shifted 24 * 2, 4 and 6 pixels to the right. 25 */ 26 27 28 #ifndef _SPRITES_H_ 29 #define _SPRITES_H_ 30 31 #include "system.h" 32 33 #ifdef GFXPC 34 35 #define SPRITES_NBR_SPRITES (0x9b) 36 37 typedef struct { 38 U16 mask; 39 U16 pict; 40 } spriteX_t; 41 42 typedef spriteX_t sprite_t[4][0x15]; /* one sprite */ 43 44 extern sprite_t sprites_data[SPRITES_NBR_SPRITES]; 45 46 #endif 47 48 #ifdef GFXST 49 50 #define SPRITES_NBR_SPRITES (0xD5) 51 52 typedef U32 sprite_t[0x54]; /* 0x15 per 0x04 */ 53 54 extern sprite_t sprites_data[SPRITES_NBR_SPRITES]; 55 56 #endif 57 58 #endif 59 60 /* eof */ 61 62