annotate IndoorCamera.h @ 944:7cbe4f80e322

Слияние
author Ritor1
date Wed, 01 May 2013 17:06:31 +0600
parents 346f7069676a
children 2c71fa8913d2
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
791
346f7069676a Indoor::GetSector and various stuff
Nomad
parents: 186
diff changeset
7 #define INDOOR_CAMERA_DRAW_TERRAIN_OUTLINES 4
0
Ritor1
parents:
diff changeset
8 /* 157 */
Ritor1
parents:
diff changeset
9 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
10 struct IndoorCamera
Ritor1
parents:
diff changeset
11 {
Ritor1
parents:
diff changeset
12 //----- (0042391F) --------------------------------------------------------
Ritor1
parents:
diff changeset
13 IndoorCamera()
Ritor1
parents:
diff changeset
14 {
Ritor1
parents:
diff changeset
15 sRotationX = 0;
Ritor1
parents:
diff changeset
16 sRotationY = 0;
Ritor1
parents:
diff changeset
17 flt_1C_fov = 2000.0f;
Ritor1
parents:
diff changeset
18 flt_20_inv_1C = 32.768002f;
Ritor1
parents:
diff changeset
19
186
d65528fc3bda D3D constants, shore tiles, camera flags
Nomad
parents: 0
diff changeset
20 flags = 0;
0
Ritor1
parents:
diff changeset
21 }
Ritor1
parents:
diff changeset
22 void Initialize(int degFov, unsigned int uViewportWidth, unsigned int uViewportHeight);
Ritor1
parents:
diff changeset
23 void Initialize2();
Ritor1
parents:
diff changeset
24 float ViewTransform(struct RenderVertexSoft *a1);
Ritor1
parents:
diff changeset
25
Ritor1
parents:
diff changeset
26
Ritor1
parents:
diff changeset
27 Vec3_int_ pos;
Ritor1
parents:
diff changeset
28 unsigned int uMapGridCellX;
Ritor1
parents:
diff changeset
29 unsigned int uMapGridCellZ;
Ritor1
parents:
diff changeset
30 int sRotationX;
Ritor1
parents:
diff changeset
31 int sRotationY;
Ritor1
parents:
diff changeset
32 float flt_1C_fov;
Ritor1
parents:
diff changeset
33 float flt_20_inv_1C;
Ritor1
parents:
diff changeset
34 int field_24;
Ritor1
parents:
diff changeset
35 int field_28;
Ritor1
parents:
diff changeset
36 float fRotationYSine;
Ritor1
parents:
diff changeset
37 float fRotationYCosine;
Ritor1
parents:
diff changeset
38 float fRotationXSine;
Ritor1
parents:
diff changeset
39 float fRotationXCosine;
Ritor1
parents:
diff changeset
40 int _int_sine;
Ritor1
parents:
diff changeset
41 int _int_cosine;
Ritor1
parents:
diff changeset
42 int _int_sine_2;
Ritor1
parents:
diff changeset
43 int _int_cosine_2;
186
d65528fc3bda D3D constants, shore tiles, camera flags
Nomad
parents: 0
diff changeset
44 int flags; // & INDOOR_CAMERA_DRAW_D3D_OUTLINES: render terrain outlines in d3d
0
Ritor1
parents:
diff changeset
45 };
Ritor1
parents:
diff changeset
46 #pragma pack(pop)
Ritor1
parents:
diff changeset
47
Ritor1
parents:
diff changeset
48
Ritor1
parents:
diff changeset
49
Ritor1
parents:
diff changeset
50 extern IndoorCamera *pIndoorCamera; // idb