Mercurial > mm7
annotate LightmapBuilder.h @ 1629:2149b14614ad
Слияние
author | Ritor1 |
---|---|
date | Mon, 16 Sep 2013 09:37:30 +0600 |
parents | 934074e7fcc1 |
children | 2c71fa8913d2 |
rev | line source |
---|---|
0 | 1 #pragma once |
2 #include <vector> | |
3 #include "Render.h" | |
4 | |
1262 | 5 struct LightsStack_StationaryLight_; |
6 struct LightsStack_MobileLight_; | |
0 | 7 |
8 /* 115 */ | |
9 #pragma pack(push, 1) | |
10 struct Lightmap | |
11 { | |
12 Lightmap(); | |
522 | 13 virtual ~Lightmap() {} |
0 | 14 |
1458 | 15 //void ( ***vdestructor_ptr)(Lightmap *, bool); |
0 | 16 unsigned int uNumVertices; |
17 RenderVertexSoft pVertices[64]; | |
18 __int16 field_C08; | |
19 __int16 field_C0A; | |
20 __int16 field_C0C; | |
21 __int16 field_C0E; | |
22 unsigned int uColorMask; | |
23 float fBrightness; | |
24 int field_C18; | |
25 }; | |
26 #pragma pack(pop) | |
27 | |
28 | |
29 /* 114 */ | |
30 #pragma pack(push, 1) | |
1103 | 31 class LightmapBuilder |
0 | 32 { |
1103 | 33 public: |
0 | 34 LightmapBuilder(); |
522 | 35 virtual ~LightmapBuilder() //----- (0045BBAA) |
0 | 36 {} |
37 | |
1394 | 38 void Draw_183808_Lightmaps(); |
0 | 39 bool DrawLightmap(Lightmap *a1, Vec3_float_ *pColorMult, float z_bias); |
1394 | 40 bool DoDraw_183808_Lightmaps(float a2); |
41 bool DrawLightmaps(int *indices = nullptr); | |
42 void DrawLightmapsType(int type); | |
0 | 43 bool DrawDebugOutlines(char bit_one_for_list1__bit_two_for_list2); |
44 double _45D643(struct Edge *a1, float a2); | |
45 int _45D426(struct Span *a1, struct Edge **a2, unsigned int a3, struct Edge *a4, int a5); | |
1391
cc9a3a24d61d
Moved stru11, stru12 and some SW Rendering stuff to the archives.
Nomad
parents:
1262
diff
changeset
|
46 bool _45D3C7(struct Polygon *a1); |
0 | 47 bool StackLight_TerrainFace(struct StationaryLight *pLight, struct Vec3_float_ *pNormal, float *a3, struct RenderVertexSoft *a1, unsigned int uStripType, int X, unsigned int *pSlot); |
48 bool StackLights_TerrainFace(struct Vec3_float_ *pNormal, float *a3, struct RenderVertexSoft *a1, unsigned int uStripType, bool bLightBackfaces); | |
49 bool ApplyLight_ODM(struct StationaryLight *pLight, struct ODMFace *pFace, unsigned int *pSlot, char a4); | |
50 bool ApplyLights_OutdoorFace(struct ODMFace *pFace); | |
51 double _45CC0C_light(struct Vec3_float_ a1, float a2, float a3, struct Vec3_float_ *pNormal, float a5, int uLightType); | |
52 int _45CBD4(struct RenderVertexSoft *a2, int a3, int *a4, int *a5); | |
53 int _45CB89(struct RenderVertexSoft *a1, int a2); | |
54 int _45CA88(struct stru320 *a2, struct RenderVertexSoft *a3, int a4, struct Vec3_float_ *pNormal); | |
55 bool ApplyLight_BLV(struct StationaryLight *pLight, struct BLVFace *a2, unsigned int *pSlot, bool bLightBackfaces, char *a5); | |
56 bool ApplyLights_IndoorFace(unsigned int uFaceID); | |
57 int _45C6D6(int a2, struct RenderVertexSoft *a3, Lightmap *pLightmap); | |
58 int _45C4B9(int a2, struct RenderVertexSoft *a3, Lightmap *pLightmap); | |
59 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); | |
60 bool ApplyLights(struct stru320 *a2, struct stru154 *a3, unsigned int uNumVertices, struct RenderVertexSoft *a5, struct IndoorCameraD3D_Vec4 *, char uClipFlag); | |
61 | |
62 | |
1458 | 63 //void ( ***vdestructor_ptr)(LightmapBuilder *, bool); |
0 | 64 //std::vector<Lightmap> std__vector_000004; |
65 //std::vector<Lightmap> std__vector_183808; | |
66 Lightmap std__vector_000004[512]; | |
67 unsigned int std__vector_000004_size; | |
68 Lightmap std__vector_183808[768]; | |
69 unsigned int std__vector_183808_size; | |
70 float flt_3C8C0C; | |
71 float flt_3C8C10; | |
72 float flt_3C8C14; | |
73 float flt_3C8C18; | |
74 float flt_3C8C1C; | |
75 float flt_3C8C20; | |
76 float flt_3C8C24; | |
77 float flt_3C8C28; | |
78 float flt_3C8C2C_lightmaps_brightness; | |
79 float flt_3C8C30; | |
80 RenderVertexSoft field_3C8C34[256]; | |
81 int uFlags; | |
82 }; | |
83 #pragma pack(pop) | |
84 | |
85 | |
86 | |
87 | |
88 extern LightsStack_StationaryLight_ *pStationaryLightsStack; | |
89 //extern StationaryLight pStationaryLights[400]; | |
90 //extern int uNumStationaryLightsApplied; // weak | |
91 extern LightsStack_MobileLight_ *pMobileLightsStack; | |
92 //extern MobileLight pMobileLights[400]; | |
93 //extern int uNumMobileLightsApplied; |