ScummVM API documentation
psx_pxactor.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_PSX_PXACTOR_H
28 #define ICB_PSX_PXACTOR_H
29 
30 #include "engines/icb/gfx/psx_pcgpu.h"
31 #include "engines/icb/common/px_common.h"
32 #include "engines/icb/shadow.h"
33 
34 namespace ICB {
35 
36 typedef struct psxActor {
37  // The true position in x,y,z space i.e. minus the render correction
38  PXvector_PSX truePos;
39  // The true rotation i.e. minus the render correction (pan_adjust)
40  SVECTOR trueRot;
41 
42  // The actors render : local to world matrix
43  MATRIX lw;
44  SVECTOR rot;
45  SVECTOR pos;
46  int32 style;
47 
48  // Screen position
49  SVECTOR sPos;
50 
51  // Bounding box on the screen
52  SVECTOR bboxScrn[8];
53 
54  // Min & max corners of the bounding box
55  SVECTOR minBbox;
56  SVECTOR maxBbox;
57 
58  // Shadow bounding boxes
59  SVECTOR shadowBox[MAX_SHADOWS][8];
60  SVECTOR shadowMinBox[MAX_SHADOWS];
61  SVECTOR shadowMaxBox[MAX_SHADOWS];
62  uint32 nShadows;
63 
64 } psxActor;
65 
66 } // End of namespace ICB
67 
68 #endif // #ifndef PSX_PXACTOR_H
Definition: px_capri_maths.h:53
Definition: actor.h:32
Definition: psx_pxactor.h:36
Definition: px_common.h:179
Definition: px_capri_maths.h:38