ScummVM API documentation
revtex_api.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_REVTEX_API_H
28 #define ICB_REVTEX_API_H
29 
30 namespace ICB {
31 
32 #define REVTEX_API_ID "RTX"
33 #define REVTEX_API_SCHEMA_ICB 1
34 #define REVTEX_API_SCHEMA_ELDORADO 2
35 
36 #define MAX_PAL_ENTRIES (256)
37 
38 typedef struct revtex_API_header {
39  char id[4];
40  uint32 schema;
42 
43 // The level pointers within the RevTexture structure in this structure
44 // are relative addresses which get converted to absolute pointer by
45 // calling the Map function
46 typedef struct revtex_API_v1 {
47  char id[4];
48  uint32 schema;
49 
50  // RevTexture revtex;
51  uint32 palette[256]; // windows 32-bit RGB with 1 byte of padding
52  uint32 width; // must be power of 2
53  uint32 height; // must be power of 2
54  uint32 levelOffset[9]; // width/1 * height/1 -> width/256 * height/256
55 
57 
58 typedef struct revtex_API_v2 {
59  char id[4];
60  uint32 schema;
61  uint32 transparent;
62 
63  // RevTexture revtex;
64  uint32 palette[256]; // windows 32-bit RGB with 1 byte of padding
65  uint32 width; // must be power of 2
66  uint32 height; // must be power of 2
67  uint32 levelOffset[9]; // width/1 * height/1 -> width/256 * height/256
68 
70 
71 } // End of namespace ICB
72 
73 #endif // #ifndef REVTEX_API_H
Definition: revtex_api.h:46
Definition: actor.h:32
Definition: revtex_api.h:38
Definition: revtex_api.h:58