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