Files
SatyandClaude Opus 5.5 7c1b3b9858 WoW/Common: WowTime, TextureCache, Lightning, AaBsp, ComponentCore
272 definitions, 111 pass and 161 approved with per-function reasons,
0 fail. CCharacterComponent and ComponentUtils started from the
thunderbrew port and were checked against 12340: adds the threading and
compression paths (CComponentRequest, CComponentMipBits, SSE and scalar
DXT1 compressors), static cdecl helpers, bool SetRandom*, signed prefs
modulo, fixed main/off-hand sheath links. CLightning/CLightningManager
moved here from Services (Common\Lightning.cpp); SetCount fixes the
never-filled joint arrays, alpha rounds via fint_. ItemDisplayInfoRec
ctor carries the folded GetRow OFFSET; 0x4F1650 joins the stpl.h list.
Stand-in declarations in World.h, ComponentData.h and Player_C.h.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-27 05:02:09 +02:00

42 lines
1.3 KiB
C++

#ifndef WOW_COMMON_TEXTURECACHE_H
#define WOW_COMMON_TEXTURECACHE_H
#include <cstddef>
#include <cstdint>
#include "Engine/Source/BLPFile/Types.h"
#include "Engine/Source/Storm/H/stpl.h"
#include "WoW/Common/ComponentCore/Types.h"
class CACHEENTRY;
class CAsyncObject;
class CACHEENTRY : public TSHashObject<CACHEENTRY, HASHKEY_NONE> {
public:
/* 0018 */ CAsyncObject* m_asyncObject;
/* 001C */ TCTEXTUREINFO m_info;
/* 0024 */ char m_fileName [128];
/* 00A4 */ int32_t m_refCount;
/* 00A8 */ uint32_t m_memHandle;
/* 00AC */ BLPHeader* m_data;
/* 00B0 */ uint32_t m_size : 20;
/* 00B0 */ uint32_t m_loadFailed : 1;
/* 00B0 */ uint32_t m_unused : 11;
CACHEENTRY();
~CACHEENTRY();
int32_t LoadTexture();
};
void TextureCacheComputeLoadProgress(void* handle, int64_t& local, int64_t& total);
void* TextureCacheCopyTexture(void* handle);
void* TextureCacheCreateTexture(const char* fileName);
void TextureCacheDestroy();
void TextureCacheDestroyTexture(void* handle);
int32_t TextureCacheGetInfo(void* handle, TCTEXTUREINFO& info, int32_t wait);
void* TextureCacheGetMip(void* handle, uint32_t mipLevel);
BlpPalPixel* TextureCacheGetPal(void* handle);
int32_t TextureCacheHasMips(void* handle);
void TextureCacheResetLoadCount();
#endif