source: abuse/tags/pd/imlib/include/loader.hpp @ 49

Last change on this file since 49 was 49, checked in by Sam Hocevar, 11 years ago
  • Imported original public domain release, for future reference.
File size: 1.0 KB
RevLine 
[49]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
10enum 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  LOADER_targa                // 24 bit, converted to 8 on load though
23} ;
24
25graphics_type tell_file_type(char *filename);
26int tell_color_size(char *filename);     // returns 8 or 24
27short load_any(char *filename, image **&images,
28               palette *&pal, short &total_read, palette *ref_pal=0);
29image24 *load_any24(char *filename);
30
31#endif
32
33
34
35
36
37
38
39
40
41
Note: See TracBrowser for help on using the repository browser.