ScummVM API documentation
px_bitmap_pc.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * Additional copyright for this file:
8  * Copyright (C) 1999-2000 Revolution Software Ltd.
9  * This code is based on source code created by Revolution Software,
10  * used with permission.
11  *
12  * This program is free software: you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation, either version 3 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program. If not, see <http://www.gnu.org/licenses/>.
24  *
25  */
26 
27 #ifndef ICB_PX_BITMAP_PC_H_INCLUDED
28 #define ICB_PX_BITMAP_PC_H_INCLUDED
29 
30 #include "engines/icb/common/px_common.h"
31 
32 namespace ICB {
33 
34 // These define the extension for the finding the bitmap files
35 #ifndef PX_BITMAP_PC_EXT
36 #define PX_BITMAP_PC_EXT "bitmap_pc"
37 #endif
38 
39 // Replaced pxHeader with id and added schema control to datafiles
40 #define PC_BITMAP_SCHEMA 1
41 #define PC_BITMAP_ID "PCB"
42 
43 // Data structure to overlay the sprite data.
44 typedef struct {
45  uint32 x, y; // X and Y position of sprite.
46  uint32 width, height; // Width and height of the sprite in pixels.
47  uint8 data[1]; // Sprite data.
48 
49 } _pxPCSprite;
50 
51 typedef struct _pxPCBitmap {
52  char id[4]; // "PCB" Pc bitmap
53  uint32 schema; // The current schema number
54 
55  uint8 palette[4 * 256]; // RGB but padded with 0 to 32-bits.
56  uint32 num_sprites; // Number of sprites in this file.
57  uint32 sprite_offsets[1]; // Offsets to sprite data for each sprite.
58 
59 } _pxPCBitmap;
60 
61 } // End of namespace ICB
62 
63 #endif // #ifndef _PX_BITMAP_PC_H_INCLUDED
Definition: px_bitmap_pc.h:44
Definition: actor.h:32
Definition: px_bitmap_pc.h:51