Add IW4 GfxLightDef asset loading code

This commit is contained in:
Jan
2020-09-09 11:54:15 +02:00
parent 24195be273
commit ceeb1832cd
6 changed files with 33 additions and 12 deletions

View File

@ -94,7 +94,7 @@ namespace IW4
// struct MapEnts;
// struct FxWorld;
// struct GfxWorld;
// struct GfxLightDef;
struct GfxLightDef;
// struct Font_s;
struct MenuList;
struct menuDef_t;
@ -105,6 +105,7 @@ namespace IW4
// struct FxImpactTable;
struct RawFile;
struct StringTable;
// struct LeaderboardDef;
// struct StructuredDataDefSet;
// struct TracerDef;
@ -134,7 +135,7 @@ namespace IW4
// MapEnts* mapEnts;
// FxWorld* fxWorld;
// GfxWorld* gfxWorld;
// GfxLightDef* lightDef;
GfxLightDef* lightDef;
// Font_s* font;
MenuList* menuList;
menuDef_t* menu;
@ -1613,6 +1614,19 @@ namespace IW4
FxElemDef* elemDefs;
};
struct GfxLightImage
{
GfxImage* image;
char samplerState;
};
struct GfxLightDef
{
const char* name;
GfxLightImage attenuation;
int lmapLookupStart;
};
#ifndef __zonecodegenerator
}
#endif