| 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 | /// Attempts to read external tileset from gfx subdirectory. |
| 19 | /// Returns true if loaded. |
| 20 | bool |
| 21 | bmp_loadExtraTileset(); |
| 22 | |
| 23 | // Loads the given named bitmap. |
| 24 | // Returns 0 on failure. |
| 25 | // If success, the buffer has been new[]ed and has 15bit RGB data. |
| 26 | // w & h have been assigned to the width and height. |
| 27 | // If quiet is set, supresses failure to open errors. |
| 28 | unsigned short * |
| 29 | bmp_load(const char *name, int &w, int &h, bool quiet); |
| 30 | |
| 31 | #endif |
| 32 |