ScummVM API documentation
light.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_LIGHT_H
28 #define ICB_LIGHT_H
29 
30 #include "engines/icb/gfx/psx_pcdefines.h"
31 #include "engines/icb/gfx/rlp_api.h"
32 
33 namespace ICB {
34 
35 // Used to pass the information from stage to actor draw
36 // about which lights are in the current camera view
37 // also passes the state of each light
38 
39 #define MAX_NUMBER_LIGHTS 32
40 #define MAX_NUMBER_SHADES 4
41 
42 #define DEFAULT_INSHADE_PERCENTAGE 0
43 
44 typedef struct PSXLampList {
45  uint32 n;
46  uint32 states[MAX_NUMBER_LIGHTS];
47  PSXLamp *lamps[MAX_NUMBER_LIGHTS];
48 } PSXLampList;
49 
50 typedef struct PSXShadeList {
51  uint32 n;
52  uint32 states[MAX_NUMBER_SHADES];
53  PSXShade *shades[MAX_NUMBER_SHADES];
54 } PSXShadeList;
55 
56 typedef struct LampInfo {
57  uint32 intens;
58  uint32 mult;
59  uint32 index;
60  uint32 bounce;
61  uint32 width;
62  uint32 rr;
63  VECTOR direct;
64  SVECTOR colour;
65 } LampInfo;
66 
67 } // End of namespace ICB
68 
69 #endif // #ifndef LIGHT_H
Definition: light.h:56
Definition: rlp_api.h:118
Definition: px_capri_maths.h:53
Definition: rlp_api.h:170
Definition: actor.h:32
Definition: light.h:44
Definition: px_capri_maths.h:46
Definition: light.h:50