ScummVM API documentation
psx_camera.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_CAMERA_H
28 #define ICB_PSX_CAMERA_H
29 
30 #include "engines/icb/gfx/psx_pcdefines.h"
31 #include "engines/icb/common/px_rcutypes.h"
32 #include "engines/icb/common/px_common.h"
33 
34 namespace ICB {
35 
36 #define PSX_CAMERA_ID "CAM"
37 #define PSX_CAMERA_SCHEMA 2
38 
39 #define PSX_WEATHER_NONE 0
40 #define PSX_WEATHER_SNOW 1
41 #define PSX_WEATHER_RAIN 2
42 
43 typedef struct {
44  MATRIX view;
45  uint16 focLen;
47 
48 typedef struct {
49  MATRIX view;
50  uint16 focLen;
51  int32 pos[3];
52 } psxPCcamera;
53 
54 typedef struct {
55  float m[3][3];
56  float t[3];
57  float fov;
58  int32 width;
59  int32 height;
61 
62 typedef struct {
63  char id[4];
64  int32 schema;
65  MATRIX view;
66  int32 pan;
67  uint16 focLen;
68  int32 weatherType;
69  int32 lightning;
70  int32 windx;
71  int32 windy;
72  int32 windz;
73  int32 particleCount;
74 } psxCamera;
75 
76 // Useful camera and co-ordinate system based maths
77 
78 void makeLSmatrix(MATRIX *ws, MATRIX *lw, MATRIX *ls);
79 
80 void psxWorldToFilm(const PXvector_PSX &worldpos, const psxCamera &camera, bool8 &is_onfilm, PXvector_PSX &filmpos);
81 
82 } // End of namespace ICB
83 
84 #endif // #ifndef PSX_CAMERA_H
Definition: psx_camera.h:43
Definition: actor.h:32
Definition: psx_camera.h:54
Definition: psx_camera.h:62
Definition: psx_camera.h:48
Definition: px_common.h:179
Definition: px_capri_maths.h:38