Last change
on this file since 483 was
49,
checked in by Sam Hocevar, 15 years ago
|
- Imported original public domain release, for future reference.
|
File size:
933 bytes
|
Line | |
---|
1 | #ifndef __LOADER_HPP_ |
---|
2 | #define __LOADER_HPP_ |
---|
3 | #include "image.hpp" |
---|
4 | #include "palette.hpp" |
---|
5 | #include "image24.hpp" |
---|
6 | |
---|
7 | |
---|
8 | // supported graphics file formats so far.. |
---|
9 | |
---|
10 | enum graphics_type |
---|
11 | { LOADER_not_supported, |
---|
12 | LOADER_mdl, // propritary |
---|
13 | LOADER_spe, // propritary |
---|
14 | LOADER_ppm, // portable pixmap |
---|
15 | LOADER_bmp8, // 8 bit color Microsoft Bitmap |
---|
16 | LOADER_bmp24, // 24 bit color Microsoft Bitmap |
---|
17 | LOADER_pcx8, // 8 bit color PC paintbrush |
---|
18 | LOADER_pcx24, // 24 bit color PC paintbrush |
---|
19 | LOADER_xwd, // X-window dump format |
---|
20 | LOADER_pic, // Pic (used in Gl's) |
---|
21 | LOADER_lbm // Delux Paint |
---|
22 | } ; |
---|
23 | |
---|
24 | graphics_type tell_file_type(char *filename); |
---|
25 | int tell_color_size(char *filename); // returns 8 or 24 |
---|
26 | short load_any(char *filename, image **&images, |
---|
27 | palette *&pal, short &total_read); |
---|
28 | image24 *load_any24(char *filename); |
---|
29 | |
---|
30 | #endif |
---|
31 | |
---|
32 | |
---|
33 | |
---|
34 | |
---|
35 | |
---|
36 | |
---|
37 | |
---|
38 | |
---|
39 | |
---|
40 | |
---|
Note: See
TracBrowser
for help on using the repository browser.