Port BufCreate, PoolCreate/PoolDestroy, DeviceCreatePools, DeviceCreateStreamBufs, IShaderLoad, ShaderCreate, ShaderDestroy, CGxShader::Load/dtor, CGxPool dtor, CGxDevice ctor/dtor and OsGetProcessorFeatures. CGxBuf gets its own header/source. CGxPool/CGxBuf/CGxAppRenderState/CGxPushedRenderState become structs (RTTI .?AU). HASHKEY_STRI derives from HASHKEY_STR. m_shaderList is TSHashTable<CGxShader, HASHKEY_STRI>[6]; list offsets via offsetof. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
76 lines
2.0 KiB
C++
76 lines
2.0 KiB
C++
#ifndef WOW_SOURCE_WORLDCLIENT_MAPRENDERCHUNK_H
|
|
#define WOW_SOURCE_WORLDCLIENT_MAPRENDERCHUNK_H
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include "Engine/Source/Gx/Types.h"
|
|
#include "Engine/Source/Tempest/C3Vector.h"
|
|
#include "Engine/Source/Tempest/CAaSphere.h"
|
|
#include "Engine/Source/Storm/H/stpl.h"
|
|
|
|
struct CGxBuf;
|
|
class CMapChunk;
|
|
class CMapChunkBufBlock;
|
|
class CMapRenderChunk;
|
|
class CMapRenderChunkBuf;
|
|
class CTexture;
|
|
|
|
class CMapRenderChunkBuf {
|
|
public:
|
|
/* 0000 */ CGxBuf* m_vertexBuf;
|
|
/* 0004 */ CGxBuf* m_indexBuf;
|
|
/* 0008 */ CMapRenderChunk* m_renderChunk;
|
|
/* 000C */ CMapChunkBufBlock* m_block;
|
|
/* 0010 */ uint32_t m_unkFlags;
|
|
/* 0014 */ TSLink<CMapRenderChunkBuf> unk_0014;
|
|
};
|
|
|
|
class CMapChunkBufBlock {
|
|
public:
|
|
/* 0000 */ uint32_t m_vertexCount;
|
|
/* 0004 */ CMapRenderChunkBuf m_bufs [2];
|
|
/* 003C */ TSLink<CMapChunkBufBlock> m_blockLink;
|
|
/* 0044 */ TSLink<CMapChunkBufBlock> m_bufLink;
|
|
};
|
|
|
|
class CMapRenderChunkLayer {
|
|
public:
|
|
/* 0000 */ int16_t m_flags;
|
|
/* 0002 */ int16_t m_layerIndex;
|
|
/* 0004 */ CTexture* m_texture;
|
|
/* 0008 */ int32_t m_textureId;
|
|
/* 000C */ int32_t m_layerTexture;
|
|
/* 0010 */ CMapRenderChunk* m_owner;
|
|
};
|
|
|
|
class CMapRenderChunk {
|
|
public:
|
|
/* 0000 */ TSLink<CMapRenderChunk> m_renderChunkLink;
|
|
/* 0008 */ uint8_t m_unkFlags;
|
|
/* 0009 */ uint8_t m_layersCount;
|
|
/* 000A */ int16_t unk_000A;
|
|
/* 000C */ float m_lastUpdateTime;
|
|
/* 0010 */ CMapChunk* m_mapChunkPtr1;
|
|
/* 0014 */ CMapChunk* m_mapChunkPtr2;
|
|
/* 0018 */ C3Vector m_vec1;
|
|
/* 0024 */ CAaSphere m_sphere;
|
|
/* 0034 */ CMapRenderChunkLayer m_layers [4];
|
|
/* 0084 */ CTexture* m_terrainBlendTexture;
|
|
/* 0088 */ CTexture* m_shadowTexture;
|
|
/* 008C */ CMapRenderChunkBuf* m_chunkBuf;
|
|
/* 0090 */ CGxBatch m_batch;
|
|
};
|
|
|
|
struct SMMapHeader {
|
|
/* 0000 */ uint32_t m_flags;
|
|
/* 0004 */ uint32_t m_something;
|
|
/* 0008 */ uint32_t m_unused [6];
|
|
};
|
|
|
|
struct TextureLayerInfo {
|
|
/* 0000 */ uint32_t m_flags;
|
|
/* 0004 */ uint8_t* m_alphaData;
|
|
};
|
|
|
|
#endif
|