diff options
Diffstat (limited to 'trunk/libsprite.h')
-rw-r--r-- | trunk/libsprite.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/trunk/libsprite.h b/trunk/libsprite.h index f0f0806..945e489 100644 --- a/trunk/libsprite.h +++ b/trunk/libsprite.h @@ -6,14 +6,14 @@ typedef enum { rosprite_rgb, rosprite_cmyk } rosprite_color_model; -struct sprite_area { +struct rosprite_area { uint32_t extension_size; /* size of extension_words in bytes */ uint8_t* extension_words; uint32_t sprite_count; - struct sprite** sprites; /* array of length sprite_count */ + struct rosprite** sprites; /* array of length sprite_count */ }; -struct sprite_mode { +struct rosprite_mode { uint32_t colorbpp; /* maskbpp denotes the amount of alpha bpp used * while mask_width is the bits used to store the mask. @@ -28,14 +28,14 @@ struct sprite_mode { rosprite_color_model color_model; }; -struct sprite_palette { +struct rosprite_palette { uint32_t size; /* in number of entries (each entry is a word) */ uint32_t* palette; }; -struct sprite { +struct rosprite { unsigned char name[13]; /* last byte for 0 terminator */ - struct sprite_mode* mode; + struct rosprite_mode* mode; bool has_mask; bool has_palette; uint32_t palettesize; /* in number of entries (each entry is a word) */ @@ -45,12 +45,12 @@ struct sprite { uint32_t* image; /* image data in 0xRRGGBBAA words */ }; -void sprite_init(void); -struct sprite_area* sprite_load_file(FILE* f); -void rosprite_destroy_sprite_area(struct sprite_area *); +void rosprite_init(void); +struct rosprite_area* rosprite_load_file(FILE* f); +void rosprite_destroy_sprite_area(struct rosprite_area *); -struct sprite_palette* rosprite_load_palette(FILE* f); -void rosprite_destroy_palette(struct sprite_palette *); +struct rosprite_palette* rosprite_load_palette(FILE* f); +void rosprite_destroy_palette(struct rosprite_palette *); #endif |