source: abuse/trunk/src/imlib/loader.hpp @ 57

Last change on this file since 57 was 57, checked in by Sam Hocevar, 14 years ago
  • Move each header to the same directory as its corresponding source, to get a better idea of which files are likely to export symbols.
File size: 1.3 KB
Line 
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
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
19enum graphics_type
20{ LOADER_not_supported,
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)
30  LOADER_lbm,                 // Delux Paint
31  LOADER_targa                // 24 bit, converted to 8 on load though
32} ;
33
34graphics_type tell_file_type(char *filename);
35int tell_color_size(char *filename);     // returns 8 or 24
36short load_any(char *filename, image **&images,
37               palette *&pal, short &total_read, palette *ref_pal=0);
38image24 *load_any24(char *filename);
39
40#endif
41
42
43
44
45
46
47
48
49
50
Note: See TracBrowser for help on using the repository browser.