[56] | 1 | /* |
---|
| 2 | * Abuse - dark 2D side-scrolling platform game |
---|
| 3 | * Copyright (c) 1995 Crack dot Com |
---|
| 4 | * |
---|
| 5 | * This software was released into the Public Domain. As with most public |
---|
| 6 | * domain software, no warranty is made or implied by Crack dot Com or |
---|
| 7 | * Jonathan Clark. |
---|
| 8 | */ |
---|
| 9 | |
---|
[2] | 10 | #ifndef __LOADER_HPP_ |
---|
| 11 | #define __LOADER_HPP_ |
---|
| 12 | #include "image.hpp" |
---|
| 13 | #include "palette.hpp" |
---|
| 14 | #include "image24.hpp" |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | // supported graphics file formats so far.. |
---|
| 18 | |
---|
[124] | 19 | enum graphics_type |
---|
[2] | 20 | { LOADER_not_supported, |
---|
[124] | 21 | LOADER_mdl, // propritary |
---|
| 22 | LOADER_spe, // propritary |
---|
| 23 | LOADER_ppm, // portable pixmap |
---|
| 24 | LOADER_bmp8, // 8 bit color Microsoft Bitmap |
---|
| 25 | LOADER_bmp24, // 24 bit color Microsoft Bitmap |
---|
| 26 | LOADER_pcx8, // 8 bit color PC paintbrush |
---|
| 27 | LOADER_pcx24, // 24 bit color PC paintbrush |
---|
| 28 | LOADER_xwd, // X-window dump format |
---|
| 29 | LOADER_pic, // Pic (used in Gl's) |
---|
[2] | 30 | LOADER_lbm, // Delux Paint |
---|
| 31 | LOADER_targa // 24 bit, converted to 8 on load though |
---|
| 32 | } ; |
---|
| 33 | |
---|
| 34 | graphics_type tell_file_type(char *filename); |
---|
[124] | 35 | int tell_color_size(char *filename); // returns 8 or 24 |
---|
| 36 | short load_any(char *filename, image **&images, |
---|
| 37 | palette *&pal, short &total_read, palette *ref_pal=0); |
---|
[2] | 38 | image24 *load_any24(char *filename); |
---|
| 39 | |
---|
| 40 | #endif |
---|
| 41 | |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | |
---|
| 49 | |
---|
| 50 | |
---|