Ports 37 Texture.cpp functions from TextureCreate to the filled D3D texture (cache, solid textures, PumpBlpTextureAsync, TextureAllocGxTex/ FreeGxTex reuse buckets, atlas, TextureGetGxTex, TextureInitialize), GxuUpdateSingleColorTexture, GxTexReusable(CGxTex*), CGxTexFlags==, CBLPFile ctor/dtor. Fixes CStatus Add overload order (vtable slots). GxTest --textures reads back D3D levels; all match 12340 (note 298). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
40 lines
1.2 KiB
C++
40 lines
1.2 KiB
C++
#ifndef ENGINE_SOURCE_BASE_STATUS_H
|
|
#define ENGINE_SOURCE_BASE_STATUS_H
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include "Engine/Source/Base/Types.h"
|
|
#include "Engine/Source/Storm/H/stpl.h"
|
|
#include "Engine/Source/Storm/H/storm.h"
|
|
|
|
class CStatus {
|
|
public:
|
|
struct STATUSENTRY {
|
|
/* 0000 */ char* m_text;
|
|
/* 0004 */ STATUS_TYPE m_severity;
|
|
/* 0008 */ TSLink<CStatus::STATUSENTRY> m_link;
|
|
|
|
~STATUSENTRY();
|
|
};
|
|
|
|
/* 0004 */ TSExplicitList<CStatus::STATUSENTRY, offsetof(CStatus::STATUSENTRY, m_link)> m_statusList;
|
|
/* 0010 */ STATUS_TYPE m_highestSeverity;
|
|
|
|
virtual ~CStatus();
|
|
virtual void Display();
|
|
virtual void Add(STATUS_TYPE severity, const char* format, ...);
|
|
virtual void Add(const CStatus& source);
|
|
virtual void Prepend(STATUS_TYPE severity, const char* format, ...);
|
|
|
|
CStatus();
|
|
void Clear();
|
|
char* GetErrorStr(char* buffer, size_t bufchars, STATUS_TYPE minSeverity, const char* separator);
|
|
char* GetErrorStrAlloc(STATUS_TYPE minSeverity, const char* separator);
|
|
uint32_t GetErrorStrLen(STATUS_TYPE minSeverity, const char* separator);
|
|
int32_t IsEmpty();
|
|
};
|
|
|
|
CStatus& GetGlobalStatusObj();
|
|
|
|
#endif
|