annotate Vis.h @ 207:8e3fea954768

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