0
|
1 #pragma once
|
|
2 #include "VectorTypes.h"
|
|
3
|
186
|
4
|
|
5 #define INDOOR_CAMERA_DRAW_SW_OUTLINES 1
|
|
6 #define INDOOR_CAMERA_DRAW_D3D_OUTLINES 2
|
0
|
7 /* 157 */
|
|
8 #pragma pack(push, 1)
|
|
9 struct IndoorCamera
|
|
10 {
|
|
11 //----- (0042391F) --------------------------------------------------------
|
|
12 IndoorCamera()
|
|
13 {
|
|
14 sRotationX = 0;
|
|
15 sRotationY = 0;
|
|
16 flt_1C_fov = 2000.0f;
|
|
17 flt_20_inv_1C = 32.768002f;
|
|
18
|
186
|
19 flags = 0;
|
0
|
20 }
|
|
21 void Initialize(int degFov, unsigned int uViewportWidth, unsigned int uViewportHeight);
|
|
22 void Initialize2();
|
|
23 float ViewTransform(struct RenderVertexSoft *a1);
|
|
24
|
|
25
|
|
26 Vec3_int_ pos;
|
|
27 unsigned int uMapGridCellX;
|
|
28 unsigned int uMapGridCellZ;
|
|
29 int sRotationX;
|
|
30 int sRotationY;
|
|
31 float flt_1C_fov;
|
|
32 float flt_20_inv_1C;
|
|
33 int field_24;
|
|
34 int field_28;
|
|
35 float fRotationYSine;
|
|
36 float fRotationYCosine;
|
|
37 float fRotationXSine;
|
|
38 float fRotationXCosine;
|
|
39 int _int_sine;
|
|
40 int _int_cosine;
|
|
41 int _int_sine_2;
|
|
42 int _int_cosine_2;
|
186
|
43 int flags; // & INDOOR_CAMERA_DRAW_D3D_OUTLINES: render terrain outlines in d3d
|
0
|
44 };
|
|
45 #pragma pack(pop)
|
|
46
|
|
47
|
|
48
|
|
49 extern IndoorCamera *pIndoorCamera; // idb |