mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
RTech: improve StreamDB type name consistency
This commit is contained in:
parent
3cbdab512d
commit
b1ad2c19b8
@ -67,12 +67,12 @@ struct TextureStreamMgr_s
|
|||||||
int fileHandle; // STBSP file handle.
|
int fileHandle; // STBSP file handle.
|
||||||
char gap_10b[4];
|
char gap_10b[4];
|
||||||
char* stringBuffer;
|
char* stringBuffer;
|
||||||
StreamDBHeader_s header;
|
StreamDB_Header_s header;
|
||||||
ST_ResidentPage* residentPages;
|
StreamDB_ResidentPage_s* residentPages;
|
||||||
MaterialGlue_t** materials;
|
MaterialGlue_t** materials;
|
||||||
ST_Material* materialInfo;
|
StreamDB_Material_s* materialInfo;
|
||||||
int64 maxResidentPageSize;
|
int64 maxResidentPageSize;
|
||||||
StreamingDBPageState_s pageStates[4];
|
StreamDB_PageState_s pageStates[4];
|
||||||
int picMip;
|
int picMip;
|
||||||
float streamBspBucketBias;
|
float streamBspBucketBias;
|
||||||
float streamBspDistScale;
|
float streamBspDistScale;
|
||||||
|
@ -10,45 +10,13 @@
|
|||||||
#define STBSP_FILE_EXTENSION "stbsp"
|
#define STBSP_FILE_EXTENSION "stbsp"
|
||||||
#define STBSP_NOMINAL_TEX_RES 4096
|
#define STBSP_NOMINAL_TEX_RES 4096
|
||||||
|
|
||||||
struct StreamDBLump_s
|
struct StreamDB_Lump_s
|
||||||
{
|
{
|
||||||
uint64_t offset;
|
uint64 offset;
|
||||||
uint64_t count;
|
uint64 count;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct StreamDBHeader_s
|
struct StreamDB_Material_s
|
||||||
{
|
|
||||||
uint32_t magic;
|
|
||||||
uint16_t majorVersion;
|
|
||||||
uint16_t minorVersion;
|
|
||||||
char unkPad1[20];
|
|
||||||
float unk1;
|
|
||||||
float unk2;
|
|
||||||
char unkPad2[130];
|
|
||||||
StreamDBLump_s lumps[6];
|
|
||||||
char unkPad3[128];
|
|
||||||
};
|
|
||||||
|
|
||||||
struct StreamingDBPageState_s
|
|
||||||
{
|
|
||||||
int page;
|
|
||||||
int unk;
|
|
||||||
char* pageData;
|
|
||||||
char gap_10[8];
|
|
||||||
};
|
|
||||||
|
|
||||||
struct ST_ResidentPage
|
|
||||||
{
|
|
||||||
uint64_t dataOffset;
|
|
||||||
int dataSize;
|
|
||||||
float coverageScale;
|
|
||||||
uint16_t minCellX;
|
|
||||||
uint16_t minCellY;
|
|
||||||
uint16_t maxCellX;
|
|
||||||
uint16_t maxCellY;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct ST_Material
|
|
||||||
{
|
{
|
||||||
int nameOffset;
|
int nameOffset;
|
||||||
char unk[4];
|
char unk[4];
|
||||||
@ -56,4 +24,36 @@ struct ST_Material
|
|||||||
char unk2[8];
|
char unk2[8];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct StreamDB_Header_s
|
||||||
|
{
|
||||||
|
uint32 magic;
|
||||||
|
uint16 majorVersion;
|
||||||
|
uint16 minorVersion;
|
||||||
|
char unkPad1[20];
|
||||||
|
float unk1;
|
||||||
|
float unk2;
|
||||||
|
char unkPad2[130];
|
||||||
|
StreamDB_Lump_s lumps[6];
|
||||||
|
char unkPad3[128];
|
||||||
|
};
|
||||||
|
|
||||||
|
struct StreamDB_PageState_s
|
||||||
|
{
|
||||||
|
int page;
|
||||||
|
int unk;
|
||||||
|
char* pageData;
|
||||||
|
char gap_10[8];
|
||||||
|
};
|
||||||
|
|
||||||
|
struct StreamDB_ResidentPage_s
|
||||||
|
{
|
||||||
|
uint64 dataOffset;
|
||||||
|
int dataSize;
|
||||||
|
float coverageScale;
|
||||||
|
uint16 minCellX;
|
||||||
|
uint16 minCellY;
|
||||||
|
uint16 maxCellX;
|
||||||
|
uint16 maxCellY;
|
||||||
|
};
|
||||||
|
|
||||||
#endif // RTECH_ISTREAMDB
|
#endif // RTECH_ISTREAMDB
|
||||||
|
Loading…
x
Reference in New Issue
Block a user