Mercurial > might-and-magic-trilogy
view LightmapBuilder.h @ 32:77de07f99e03
16.10.12 9.09
author | Ritor1 |
---|---|
date | Tue, 16 Oct 2012 09:09:53 +0600 |
parents | 8b8875f5b359 |
children | bcc051713d20 |
line wrap: on
line source
#pragma once #include <vector> #include "Render.h" #include "Lights.h" /* 115 */ #pragma pack(push, 1) struct Lightmap { Lightmap(); void (__thiscall ***vdestructor_ptr)(Lightmap *, bool); unsigned int uNumVertices; RenderVertexSoft pVertices[64]; __int16 field_C08; __int16 field_C0A; __int16 field_C0C; __int16 field_C0E; int field_C10; float flt_C14; int field_C18; }; #pragma pack(pop) /* 114 */ #pragma pack(push, 1) struct LightmapBuilder { LightmapBuilder(); inline ~LightmapBuilder() //----- (0045BBAA) {} void DoDrawLightmaps(); bool DrawLightmap(Lightmap *a1, Vec3_float_ *arg4, float thisa); bool DrawLightmaps2(float a2); char _45D74F_MessWithLight(int a2, int *a3); void DrawLightmaps(int a2); bool DrawDebugOutlines(char bit_one_for_list1__bit_two_for_list2); double _45D643(struct Edge *a1, float a2); int _45D426(struct Span *a1, struct Edge **a2, unsigned int a3, struct Edge *a4, int a5); bool _45D3C7(struct stru148 *a1); bool StackLight_TerrainFace(struct StationaryLight *pLight, struct Vec3_float_ *pNormal, float *a3, struct RenderVertexSoft *a1, unsigned int uStripType, int X, unsigned int *pSlot); bool StackLights_TerrainFace(struct Vec3_float_ *pNormal, float *a3, struct RenderVertexSoft *a1, unsigned int uStripType, int X); bool ApplyLight_ODM(struct StationaryLight *pLight, struct ODMFace *pFace, unsigned int *pSlot, char a4); bool ApplyLights_OutdoorFace(struct ODMFace *pFace); double _45CC0C_light(struct Vec3_float_ a1, float a2, float a3, struct Vec3_float_ *pNormal, float a5, int uLightType); int _45CBD4(struct RenderVertexSoft *a2, int a3, int *a4, int *a5); int _45CB89(struct RenderVertexSoft *a1, int a2); int _45CA88(struct stru320 *a2, struct RenderVertexSoft *a3, int a4, struct Vec3_float_ *pNormal); bool ApplyLight_BLV(struct StationaryLight *pLight, struct BLVFace *a2, unsigned int *pSlot, char X, int a5); bool ApplyLights_IndoorFace(unsigned int uFaceID); int _45C6D6(int a2, struct RenderVertexSoft *a3, Lightmap *pLightmap); int _45C4B9(int a2, struct RenderVertexSoft *a3, Lightmap *pLightmap); char _45BE86_build_light_polygon(int arg0, float a4, int arg8, float a5, int uLightType, struct stru314 *a7, signed int a2, RenderVertexSoft *a9, char uClipFlag); char ApplyLights(struct stru320 *a2, struct stru154 *a3, unsigned int uNumVertices, struct RenderVertexSoft *a5, float a6, char a7); void (__thiscall ***vdestructor_ptr)(LightmapBuilder *, bool); //std::vector<Lightmap> std__vector_000004; //std::vector<Lightmap> std__vector_183808; Lightmap std__vector_000004[512]; unsigned int std__vector_000004_size; Lightmap std__vector_183808[768]; unsigned int std__vector_183808_size; float flt_3C8C0C; float flt_3C8C10; float flt_3C8C14; float flt_3C8C18; float flt_3C8C1C; float flt_3C8C20; float flt_3C8C24; float flt_3C8C28; float flt_3C8C2C; float flt_3C8C30; RenderVertexSoft field_3C8C34[256]; int uFlags; }; #pragma pack(pop) extern LightsStack_StationaryLight_ *pStationaryLightsStack; extern StationaryLight pStationaryLights[400]; extern int uNumStationaryLightsApplied; // weak extern LightsStack_MobileLight_ *pMobileLightsStack; extern MobileLight pMobileLights[400]; extern int uNumMobileLightsApplied;