annotate Vis.h @ 212:9f349addbe00

Слияние
author Ritor1
date Sat, 16 Feb 2013 22:14:04 +0600
parents 4e35bb416dea
children 650d96af8855
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
Ritor1
parents:
diff changeset
2 #include "Render.h"
Ritor1
parents:
diff changeset
3
Ritor1
parents:
diff changeset
4
Ritor1
parents:
diff changeset
5
Ritor1
parents:
diff changeset
6
Ritor1
parents:
diff changeset
7
Ritor1
parents:
diff changeset
8
Ritor1
parents:
diff changeset
9 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
10 struct Vis_stru1_stru0
Ritor1
parents:
diff changeset
11 {
Ritor1
parents:
diff changeset
12 void *pObjectInfo;
Ritor1
parents:
diff changeset
13 int sZValue;
Ritor1
parents:
diff changeset
14 unsigned int uObjectType;
Ritor1
parents:
diff changeset
15 };
Ritor1
parents:
diff changeset
16 #pragma pack(pop)
Ritor1
parents:
diff changeset
17
Ritor1
parents:
diff changeset
18 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
19 struct Vis_stru1
Ritor1
parents:
diff changeset
20 {
Ritor1
parents:
diff changeset
21 Vis_stru1();
Ritor1
parents:
diff changeset
22 //----- (004C0585) --------------------------------------------------------
Ritor1
parents:
diff changeset
23 ~Vis_stru1() {}
Ritor1
parents:
diff changeset
24 Vis_stru1_stru0 *sub_4C2551(int a2, int a3);
Ritor1
parents:
diff changeset
25 Vis_stru1_stru0 **create_object_pointers(unsigned int flag);
Ritor1
parents:
diff changeset
26
Ritor1
parents:
diff changeset
27 void (__thiscall ***vdestructor_ptr)(Vis_stru1 *, bool);
Ritor1
parents:
diff changeset
28 Vis_stru1_stru0 array_0004[512];
Ritor1
parents:
diff changeset
29 Vis_stru1_stru0 *array_1804[512];
Ritor1
parents:
diff changeset
30 unsigned int uNumPointers;
Ritor1
parents:
diff changeset
31 };
Ritor1
parents:
diff changeset
32 #pragma pack(pop)
Ritor1
parents:
diff changeset
33
Ritor1
parents:
diff changeset
34
Ritor1
parents:
diff changeset
35
Ritor1
parents:
diff changeset
36 /* 116 */
Ritor1
parents:
diff changeset
37 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
38 struct Vis
Ritor1
parents:
diff changeset
39 {
Ritor1
parents:
diff changeset
40 Vis();
Ritor1
parents:
diff changeset
41 //----- (004C05A2) --------------------------------------------------------
Ritor1
parents:
diff changeset
42 //virtual ~Vis() {}
Ritor1
parents:
diff changeset
43 //----- (004C05BE) --------------------------------------------------------
Ritor1
parents:
diff changeset
44 ~Vis() {}
123
4e35bb416dea 11.02.13
Ritor1
parents: 0
diff changeset
45 bool PickKeyboard(Vis_stru1 *a2, struct stru157 *a3, struct stru157 *a4);
0
Ritor1
parents:
diff changeset
46 bool PickMouse(float fDepth, float fMouseX, float fMouseY, struct stru157 *a5, struct stru157 *a6);
Ritor1
parents:
diff changeset
47 void _4C06F8(float arg0, Vis_stru1 *a3, struct stru157 *a2);
Ritor1
parents:
diff changeset
48 bool is_part_of_selection(struct BLVFace *uD3DBillboardIdx_or_pBLVFace_or_pODMFace, struct stru157 *a2);
Ritor1
parents:
diff changeset
49 bool DoesRayIntersectBillboard(float fDepth, unsigned int uD3DBillboardIdx);
Ritor1
parents:
diff changeset
50 int _4C0D32_BLV(float a1, Vis_stru1 *arg4, struct stru157 *a2);
Ritor1
parents:
diff changeset
51 void _4C0DEA_ODM(float arg0, Vis_stru1 *a3, struct stru157 *a2);
Ritor1
parents:
diff changeset
52 Vis_stru1_stru0 *_4C1026(struct BLVFace *a2, unsigned int a3, float a4);
Ritor1
parents:
diff changeset
53 char _4C12C3_FindSomeBillboard(struct RenderVertexSoft *a1, int a2, float a3, float a4);
Ritor1
parents:
diff changeset
54 void GetPolygonCenter(struct RenderVertexD3D3 *pVertices, unsigned int uNumVertices, float *pCenterX, float *pCenterY);
Ritor1
parents:
diff changeset
55 float *_4C1495(struct RenderVertexSoft *Src, int a2, float *a3, float *a4);
Ritor1
parents:
diff changeset
56 void PickBillboards(float fPickDepth, float fX, float fY, Vis_stru1 *a4, stru157 *a2);
Ritor1
parents:
diff changeset
57 bool IsPointInsideD3DBillboard(struct RenderBillboardD3D *a1, float x, float y);
Ritor1
parents:
diff changeset
58 void PickIndoor(float fDepth, struct RenderVertexSoft *pRay, Vis_stru1 *a4, stru157 *a5);
Ritor1
parents:
diff changeset
59 void PickOutdoor(float fDepth, struct RenderVertexSoft *pRay, Vis_stru1 *a4, stru157 *a5, char a6);
Ritor1
parents:
diff changeset
60 int _4C1944(int a2, unsigned int a3, int a4, int a5, int a6);
Ritor1
parents:
diff changeset
61 void _4C1A02();
Ritor1
parents:
diff changeset
62 bool SortVectors_x(RenderVertexSoft *a2, int a3, int a4);
Ritor1
parents:
diff changeset
63 int get_object_zbuf_val(Vis_stru1_stru0 *a2);
Ritor1
parents:
diff changeset
64 int get_picked_object_zbuf_val();
Ritor1
parents:
diff changeset
65 bool Intersect_Ray_Face(struct RenderVertexSoft *pRayStart, struct RenderVertexSoft *pRayEnd, float *pDepth, RenderVertexSoft *a4, BLVFace *a5, unsigned int a6);
Ritor1
parents:
diff changeset
66 int _4C1D2B(BLVFace *pFace, Vec3_short_ a2, unsigned int uModelID);
Ritor1
parents:
diff changeset
67 bool _4C1EE5_BLV_IntersectBModel_2(int *a1, int *a2, __int16 *a3, __int16 *a4, Vec3_short_ *a5, BLVFace *pFace);
Ritor1
parents:
diff changeset
68 bool _4C2186_BLV_IntersectBModel(int *a1, int *a2, __int16 *a3, __int16 *a4, Vec3_short_ *a5, BLVFace *a6, unsigned int uModelID);
Ritor1
parents:
diff changeset
69 void CastPickRay(RenderVertexSoft *pRay, float fMouseX, float fMouseY, float fPickDepth);
Ritor1
parents:
diff changeset
70 void sort_object_pointers(Vis_stru1_stru0 **pPointers, int left, int right);
Ritor1
parents:
diff changeset
71 bool SortVerticesByX(struct RenderVertexD3D3 *a2, unsigned int uStart, unsigned int uEnd);
Ritor1
parents:
diff changeset
72 bool SortVerticesByY(struct RenderVertexD3D3 *a2, unsigned int uStart, unsigned int uEnd);
Ritor1
parents:
diff changeset
73 bool sort_objects_2(struct RenderVertexSoft *pArray, int sLeft, int sRight);
Ritor1
parents:
diff changeset
74 bool sort_objects_3(struct RenderVertexSoft *pArray, int sLeft, int sRight);
Ritor1
parents:
diff changeset
75
Ritor1
parents:
diff changeset
76 void (__thiscall ***vdestructor_ptr)(Vis *, bool);
Ritor1
parents:
diff changeset
77 Vis_stru1 stru1;
Ritor1
parents:
diff changeset
78 RenderVertexSoft stru_200C;
Ritor1
parents:
diff changeset
79 RenderVertexSoft stru_203C;
Ritor1
parents:
diff changeset
80 RenderVertexSoft stru_206C;
Ritor1
parents:
diff changeset
81 RenderVertexSoft stru_209C;
Ritor1
parents:
diff changeset
82 int field_20CC;
Ritor1
parents:
diff changeset
83 };
Ritor1
parents:
diff changeset
84 #pragma pack(pop)