annotate IndoorCamera.h @ 212:9f349addbe00

Слияние
author Ritor1
date Sat, 16 Feb 2013 22:14:04 +0600
parents d65528fc3bda
children 346f7069676a
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
Ritor1
parents:
diff changeset
2 #include "VectorTypes.h"
Ritor1
parents:
diff changeset
3
186
d65528fc3bda D3D constants, shore tiles, camera flags
Nomad
parents: 0
diff changeset
4
d65528fc3bda D3D constants, shore tiles, camera flags
Nomad
parents: 0
diff changeset
5 #define INDOOR_CAMERA_DRAW_SW_OUTLINES 1
d65528fc3bda D3D constants, shore tiles, camera flags
Nomad
parents: 0
diff changeset
6 #define INDOOR_CAMERA_DRAW_D3D_OUTLINES 2
0
Ritor1
parents:
diff changeset
7 /* 157 */
Ritor1
parents:
diff changeset
8 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
9 struct IndoorCamera
Ritor1
parents:
diff changeset
10 {
Ritor1
parents:
diff changeset
11 //----- (0042391F) --------------------------------------------------------
Ritor1
parents:
diff changeset
12 IndoorCamera()
Ritor1
parents:
diff changeset
13 {
Ritor1
parents:
diff changeset
14 sRotationX = 0;
Ritor1
parents:
diff changeset
15 sRotationY = 0;
Ritor1
parents:
diff changeset
16 flt_1C_fov = 2000.0f;
Ritor1
parents:
diff changeset
17 flt_20_inv_1C = 32.768002f;
Ritor1
parents:
diff changeset
18
186
d65528fc3bda D3D constants, shore tiles, camera flags
Nomad
parents: 0
diff changeset
19 flags = 0;
0
Ritor1
parents:
diff changeset
20 }
Ritor1
parents:
diff changeset
21 void Initialize(int degFov, unsigned int uViewportWidth, unsigned int uViewportHeight);
Ritor1
parents:
diff changeset
22 void Initialize2();
Ritor1
parents:
diff changeset
23 float ViewTransform(struct RenderVertexSoft *a1);
Ritor1
parents:
diff changeset
24
Ritor1
parents:
diff changeset
25
Ritor1
parents:
diff changeset
26 Vec3_int_ pos;
Ritor1
parents:
diff changeset
27 unsigned int uMapGridCellX;
Ritor1
parents:
diff changeset
28 unsigned int uMapGridCellZ;
Ritor1
parents:
diff changeset
29 int sRotationX;
Ritor1
parents:
diff changeset
30 int sRotationY;
Ritor1
parents:
diff changeset
31 float flt_1C_fov;
Ritor1
parents:
diff changeset
32 float flt_20_inv_1C;
Ritor1
parents:
diff changeset
33 int field_24;
Ritor1
parents:
diff changeset
34 int field_28;
Ritor1
parents:
diff changeset
35 float fRotationYSine;
Ritor1
parents:
diff changeset
36 float fRotationYCosine;
Ritor1
parents:
diff changeset
37 float fRotationXSine;
Ritor1
parents:
diff changeset
38 float fRotationXCosine;
Ritor1
parents:
diff changeset
39 int _int_sine;
Ritor1
parents:
diff changeset
40 int _int_cosine;
Ritor1
parents:
diff changeset
41 int _int_sine_2;
Ritor1
parents:
diff changeset
42 int _int_cosine_2;
186
d65528fc3bda D3D constants, shore tiles, camera flags
Nomad
parents: 0
diff changeset
43 int flags; // & INDOOR_CAMERA_DRAW_D3D_OUTLINES: render terrain outlines in d3d
0
Ritor1
parents:
diff changeset
44 };
Ritor1
parents:
diff changeset
45 #pragma pack(pop)
Ritor1
parents:
diff changeset
46
Ritor1
parents:
diff changeset
47
Ritor1
parents:
diff changeset
48
Ritor1
parents:
diff changeset
49 extern IndoorCamera *pIndoorCamera; // idb