annotate LightmapBuilder.h @ 1172:d5dae0b4b98a

Слияние
author Ritor1
date Fri, 24 May 2013 10:53:46 +0600
parents 61343380715b
children db395ce89ede
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
Ritor1
parents:
diff changeset
2 #include <vector>
Ritor1
parents:
diff changeset
3 #include "Render.h"
Ritor1
parents:
diff changeset
4 #include "Lights.h"
Ritor1
parents:
diff changeset
5
Ritor1
parents:
diff changeset
6
Ritor1
parents:
diff changeset
7 /* 115 */
Ritor1
parents:
diff changeset
8 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
9 struct Lightmap
Ritor1
parents:
diff changeset
10 {
Ritor1
parents:
diff changeset
11 Lightmap();
522
61343380715b Origianl structures integrity test added
Nomad
parents: 0
diff changeset
12 virtual ~Lightmap() {}
0
Ritor1
parents:
diff changeset
13
522
61343380715b Origianl structures integrity test added
Nomad
parents: 0
diff changeset
14 //void (__thiscall ***vdestructor_ptr)(Lightmap *, bool);
0
Ritor1
parents:
diff changeset
15 unsigned int uNumVertices;
Ritor1
parents:
diff changeset
16 RenderVertexSoft pVertices[64];
Ritor1
parents:
diff changeset
17 __int16 field_C08;
Ritor1
parents:
diff changeset
18 __int16 field_C0A;
Ritor1
parents:
diff changeset
19 __int16 field_C0C;
Ritor1
parents:
diff changeset
20 __int16 field_C0E;
Ritor1
parents:
diff changeset
21 unsigned int uColorMask;
Ritor1
parents:
diff changeset
22 float fBrightness;
Ritor1
parents:
diff changeset
23 int field_C18;
Ritor1
parents:
diff changeset
24 };
Ritor1
parents:
diff changeset
25 #pragma pack(pop)
Ritor1
parents:
diff changeset
26
Ritor1
parents:
diff changeset
27
Ritor1
parents:
diff changeset
28 /* 114 */
Ritor1
parents:
diff changeset
29 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
30 struct LightmapBuilder
Ritor1
parents:
diff changeset
31 {
Ritor1
parents:
diff changeset
32 LightmapBuilder();
522
61343380715b Origianl structures integrity test added
Nomad
parents: 0
diff changeset
33 virtual ~LightmapBuilder() //----- (0045BBAA)
0
Ritor1
parents:
diff changeset
34 {}
Ritor1
parents:
diff changeset
35
Ritor1
parents:
diff changeset
36 void DoDrawLightmaps();
Ritor1
parents:
diff changeset
37 bool DrawLightmap(Lightmap *a1, Vec3_float_ *pColorMult, float z_bias);
Ritor1
parents:
diff changeset
38 bool DrawLightmaps2(float a2);
Ritor1
parents:
diff changeset
39 char _45D74F_MessWithLight(int a2, int *a3);
Ritor1
parents:
diff changeset
40 void DrawLightmaps(int a2);
Ritor1
parents:
diff changeset
41 bool DrawDebugOutlines(char bit_one_for_list1__bit_two_for_list2);
Ritor1
parents:
diff changeset
42 double _45D643(struct Edge *a1, float a2);
Ritor1
parents:
diff changeset
43 int _45D426(struct Span *a1, struct Edge **a2, unsigned int a3, struct Edge *a4, int a5);
Ritor1
parents:
diff changeset
44 bool _45D3C7(struct stru148 *a1);
Ritor1
parents:
diff changeset
45 bool StackLight_TerrainFace(struct StationaryLight *pLight, struct Vec3_float_ *pNormal, float *a3, struct RenderVertexSoft *a1, unsigned int uStripType, int X, unsigned int *pSlot);
Ritor1
parents:
diff changeset
46 bool StackLights_TerrainFace(struct Vec3_float_ *pNormal, float *a3, struct RenderVertexSoft *a1, unsigned int uStripType, bool bLightBackfaces);
Ritor1
parents:
diff changeset
47 bool ApplyLight_ODM(struct StationaryLight *pLight, struct ODMFace *pFace, unsigned int *pSlot, char a4);
Ritor1
parents:
diff changeset
48 bool ApplyLights_OutdoorFace(struct ODMFace *pFace);
Ritor1
parents:
diff changeset
49 double _45CC0C_light(struct Vec3_float_ a1, float a2, float a3, struct Vec3_float_ *pNormal, float a5, int uLightType);
Ritor1
parents:
diff changeset
50 int _45CBD4(struct RenderVertexSoft *a2, int a3, int *a4, int *a5);
Ritor1
parents:
diff changeset
51 int _45CB89(struct RenderVertexSoft *a1, int a2);
Ritor1
parents:
diff changeset
52 int _45CA88(struct stru320 *a2, struct RenderVertexSoft *a3, int a4, struct Vec3_float_ *pNormal);
Ritor1
parents:
diff changeset
53 bool ApplyLight_BLV(struct StationaryLight *pLight, struct BLVFace *a2, unsigned int *pSlot, bool bLightBackfaces, char *a5);
Ritor1
parents:
diff changeset
54 bool ApplyLights_IndoorFace(unsigned int uFaceID);
Ritor1
parents:
diff changeset
55 int _45C6D6(int a2, struct RenderVertexSoft *a3, Lightmap *pLightmap);
Ritor1
parents:
diff changeset
56 int _45C4B9(int a2, struct RenderVertexSoft *a3, Lightmap *pLightmap);
Ritor1
parents:
diff changeset
57 bool _45BE86_build_light_polygon(Vec3_int_ *pos, float radius, unsigned int uColorMask, float dot_dist, int uLightType, struct stru314 *a7, unsigned int uNumVertices, RenderVertexSoft *a9, char uClipFlag);
Ritor1
parents:
diff changeset
58 bool ApplyLights(struct stru320 *a2, struct stru154 *a3, unsigned int uNumVertices, struct RenderVertexSoft *a5, struct IndoorCameraD3D_Vec4 *, char uClipFlag);
Ritor1
parents:
diff changeset
59
Ritor1
parents:
diff changeset
60
522
61343380715b Origianl structures integrity test added
Nomad
parents: 0
diff changeset
61 //void (__thiscall ***vdestructor_ptr)(LightmapBuilder *, bool);
0
Ritor1
parents:
diff changeset
62 //std::vector<Lightmap> std__vector_000004;
Ritor1
parents:
diff changeset
63 //std::vector<Lightmap> std__vector_183808;
Ritor1
parents:
diff changeset
64 Lightmap std__vector_000004[512];
Ritor1
parents:
diff changeset
65 unsigned int std__vector_000004_size;
Ritor1
parents:
diff changeset
66 Lightmap std__vector_183808[768];
Ritor1
parents:
diff changeset
67 unsigned int std__vector_183808_size;
Ritor1
parents:
diff changeset
68 float flt_3C8C0C;
Ritor1
parents:
diff changeset
69 float flt_3C8C10;
Ritor1
parents:
diff changeset
70 float flt_3C8C14;
Ritor1
parents:
diff changeset
71 float flt_3C8C18;
Ritor1
parents:
diff changeset
72 float flt_3C8C1C;
Ritor1
parents:
diff changeset
73 float flt_3C8C20;
Ritor1
parents:
diff changeset
74 float flt_3C8C24;
Ritor1
parents:
diff changeset
75 float flt_3C8C28;
Ritor1
parents:
diff changeset
76 float flt_3C8C2C_lightmaps_brightness;
Ritor1
parents:
diff changeset
77 float flt_3C8C30;
Ritor1
parents:
diff changeset
78 RenderVertexSoft field_3C8C34[256];
Ritor1
parents:
diff changeset
79 int uFlags;
Ritor1
parents:
diff changeset
80 };
Ritor1
parents:
diff changeset
81 #pragma pack(pop)
Ritor1
parents:
diff changeset
82
Ritor1
parents:
diff changeset
83
Ritor1
parents:
diff changeset
84
Ritor1
parents:
diff changeset
85
Ritor1
parents:
diff changeset
86 extern LightsStack_StationaryLight_ *pStationaryLightsStack;
Ritor1
parents:
diff changeset
87 //extern StationaryLight pStationaryLights[400];
Ritor1
parents:
diff changeset
88 //extern int uNumStationaryLightsApplied; // weak
Ritor1
parents:
diff changeset
89 extern LightsStack_MobileLight_ *pMobileLightsStack;
Ritor1
parents:
diff changeset
90 //extern MobileLight pMobileLights[400];
Ritor1
parents:
diff changeset
91 //extern int uNumMobileLightsApplied;