Debian Codegraph @

support/tile2c/bmp.h

raw symbols SCIP
1 /*
2 * PROPRIETARY INFORMATION. This software is proprietary to POWDER
3 * Development, and is not to be reproduced, transmitted, or disclosed
4 * in any way without written permission.
5 *
6 * Produced by: Jeff Lait
7 *
8 * POWDER Development
9 *
10 * NAME: bmp.h ( bmp Library, C++ )
11 *
12 * COMMENTS:
13 */
14
15 #ifndef __bmp__
16 #define __bmp__
17
18 #include <string.h>
19 #include <stdio.h>
20 #include <stdlib.h>
21 #include <memory.h>
22
23 typedef unsigned char u8;
24 typedef unsigned short u16;
25 typedef signed char s8;
26 typedef signed short s16;
27
28 // Does all the magic stuff.
29 bool bmp_convertTileset();
30
31 // Loads the given named bitmap.
32 // Returns 0 on failure.
33 // If success, the buffer has been new[]ed and has 15bit RGB data.
34 // w & h have been assigned to the width and height.
35 // If quiet is set, supresses failure to open errors.
36 unsigned short *
37 bmp_load(const char *name, int &w, int &h, bool quiet);
38
39 #endif
40