ScummVM API documentation
stage_draw.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_STAGE_DRAW_MODULE_H__
28 #define ICB_STAGE_DRAW_MODULE_H__
29 
30 #include "engines/icb/gfx/psx_pxactor.h"
31 
32 namespace ICB {
33 
34 #define RGBBytesPerPixel 4 // 32 bit
35 #define RGBWidth SCREEN_WIDTH // width
36 #define RGBHeight SCREEN_DEPTH // height
37 #define RGBPitch (RGBWidth * RGBBytesPerPixel) // pitch
38 #define ZPitch (ZBytesPerPixel * SCREEN_WIDTH) // z-pitch
39 #define ZBytesPerPixel 2 // 16bit z-buffer
40 
41 #define MAXIMUM_POTENTIAL_ON_SCREEN_ACTOR_QUANTITY 32
42 #define ACTOR_SHADE_LIMIT 0.3f
43 
44 typedef struct {
45  const char *anim_name;
46  uint32 anim_hash;
47  const char *palette_name;
48  uint32 palette_hash;
49  const char *base_name;
50  uint32 base_hash;
51  uint32 frame;
52  bool8 *pInShade;
53  psxActor psx_actor;
54  uint16 r;
55  uint16 g;
56  uint16 b;
57  _logic *log;
58 } SDactor;
59 
60 void StageDrawPoly(SDactor *actors, uint32 actorQty);
61 void InitRevRenderDevice();
62 void DestoryRevRenderDevice();
63 
64 } // End of namespace ICB
65 
66 #endif // __STAGE_DRAW_MODULE_H__
Definition: actor.h:32
Definition: object_structs.h:391
Definition: psx_pxactor.h:36
Definition: stage_draw.h:44