File: bmp.h

package info (click to toggle)
powder 117-2
  • links: PTS
  • area: non-free
  • in suites: stretch
  • size: 10,576 kB
  • ctags: 3,545
  • sloc: cpp: 55,002; makefile: 541; sh: 258; objc: 245; ansic: 107; csh: 54
file content (32 lines) | stat: -rw-r--r-- 777 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * PROPRIETARY INFORMATION.  This software is proprietary to POWDER
 * Development, and is not to be reproduced, transmitted, or disclosed
 * in any way without written permission.
 *
 * Produced by:	Jeff Lait
 *
 *      	POWDER Development
 *
 * NAME:        bmp.h ( bmp Library, C++ )
 *
 * COMMENTS:
 */

#ifndef __bmp__
#define __bmp__

/// Attempts to read external tileset from gfx subdirectory.
/// Returns true if loaded.
bool
bmp_loadExtraTileset();

// Loads the given named bitmap.
// Returns 0 on failure.
// If success, the buffer has been new[]ed and has 15bit RGB data.
// w & h have been assigned to the width and height.
// If quiet is set, supresses failure to open errors.
unsigned short *
bmp_load(const char *name, int &w, int &h, bool quiet);

#endif