diff options
author | James Shaw <jshaw@netsurf-browser.org> | 2007-11-26 16:32:07 +0000 |
---|---|---|
committer | James Shaw <jshaw@netsurf-browser.org> | 2007-11-26 16:32:07 +0000 |
commit | fbfaaa049fa9743ec483c326740a5ebd4a2284c1 (patch) | |
tree | e4522787af2737f51621fabef87199efe1c86805 /trunk/libsprite.h | |
parent | 1881d513165e082155b4fa3472713521070b7ada (diff) | |
download | librosprite-fbfaaa049fa9743ec483c326740a5ebd4a2284c1.tar.gz librosprite-fbfaaa049fa9743ec483c326740a5ebd4a2284c1.tar.bz2 |
Add support for default palettes, and loading palettes from RISC
OS palette files.
svn path=/import/jshaw/libsprite/; revision=9990
Diffstat (limited to 'trunk/libsprite.h')
-rw-r--r-- | trunk/libsprite.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/trunk/libsprite.h b/trunk/libsprite.h index c70c28b..81287fb 100644 --- a/trunk/libsprite.h +++ b/trunk/libsprite.h @@ -18,6 +18,11 @@ struct sprite_mode { uint32_t ydpi; }; +struct sprite_palette { + uint32_t size; /* in number of entries (each entry is a word) */ + uint32_t* palette; +}; + struct sprite { unsigned char name[13]; /* last byte for 0 terminator */ struct sprite_mode* mode; @@ -32,5 +37,6 @@ struct sprite { void sprite_init(); struct sprite_area* sprite_load_file(FILE* f); +struct sprite_palette* sprite_load_palette(FILE* f); #endif |