- Stand-in client reaches the glue screens (intro movie, EULA/TOS accept, login screen) at 16:9; stand-ins are report-only on x64 - Ports on the startup/idle path: GlueScriptEvents/CharacterSelection/ CharacterCreation/RealmList/AccountMsg/VideoOptions _Scripts, CGlueMgr (Initialize/Resume/Idle/Accept*/Shutdown), ClientServices, NetClient/ WowConnection, DBCache + instances, WorldParam/World/Map/Liquid/Weather/ shadow, InputControl, Scrn, ConsoleClient, SysMessage, LoadingScreen, SystemRegisterFunctions, CGameTime, Screen::GetAspectRatio - Shutdown chain: BeginCloseGame, DestroyEngineCallback, DBCache save/ destroy, SpellVisuals/Effect/World/Glue teardown - Logitech LCD no-device path in Ui/UILCD/Windows (Windows-only dir); lgLcd is a stub library in ThirdParty/lgLcd - CVar and console commands split into <Module>_CVar.cpp / _Console.cpp - DivxDecoder.dll (Win32, original) and XvidDecoder.dll (x64, port with vendored xvidcore) both copied to the build folder - Warden: Win32 faithful port, Win64 stub - x64 fixes: lua_newstate gcusage/gctime init, pointer render states reset with nullptr, g_rndSeed defined - 37 class/struct forward-declaration mismatches fixed (false stand-ins) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
86 lines
3.1 KiB
C++
86 lines
3.1 KiB
C++
#ifndef ENGINE_SOURCE_FRAME_CSIMPLETEXTURE_H
|
|
#define ENGINE_SOURCE_FRAME_CSIMPLETEXTURE_H
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include "Engine/Source/Base/CDataAllocator.h"
|
|
#include "Engine/Source/Frame/CSimpleRegion.h"
|
|
#include "Engine/Source/Frame/Types.h"
|
|
#include "Engine/Source/Gx/Types.h"
|
|
#include "Engine/Source/Tempest/C2Vector.h"
|
|
#include "Engine/Source/Tempest/C3Vector.h"
|
|
|
|
class CImVector;
|
|
class CRect;
|
|
class CRenderBatch;
|
|
class CSimpleFrame;
|
|
class CGxShader;
|
|
class CGxTex;
|
|
class CStatus;
|
|
class CTexture;
|
|
class XMLNode;
|
|
|
|
class CSimpleTexture : public CSimpleRegion {
|
|
public:
|
|
static CDataAllocator s_allocator;
|
|
static int32_t s_count;
|
|
static CGxShader* s_imageModePixelShaders[2];
|
|
static const char* s_imageModePixelShaderNames[2];
|
|
static int32_t s_metatable;
|
|
static int32_t s_objectType;
|
|
static const char* s_objectTypeName;
|
|
static EGxTexFilter s_textureFilterMode;
|
|
|
|
static void operator delete(void* ptr);
|
|
static void CreateScriptMetaTable();
|
|
static void Destroy();
|
|
static void DestroyScriptMetaTable();
|
|
static CGxShader* GetImageModePixelShader(TextureImageMode mode);
|
|
static int32_t GetObjectType();
|
|
static void Init();
|
|
static void RegisterScriptMethods(lua_State* L);
|
|
|
|
/* 00D4 */ CTexture* m_texture;
|
|
/* 00D8 */ EGxBlend m_alphaMode;
|
|
/* 00DC */ CGxShader* m_shader;
|
|
/* 00E0 */ C3Vector m_positions [4];
|
|
/* 0110 */ C3Vector m_storedPositions [4];
|
|
/* 0140 */ C2Vector m_texCoords [4];
|
|
/* 0160 */ uint32_t m_textureFlags;
|
|
|
|
virtual ~CSimpleTexture();
|
|
virtual int32_t GetScriptMetaTable();
|
|
virtual bool IsA(int32_t type);
|
|
virtual bool IsA(const char* typeName);
|
|
virtual const char* GetObjectTypeName();
|
|
virtual void PreOnAnimUpdate();
|
|
virtual void AddAnimTranslation(const C2Vector& translation);
|
|
virtual void AddAnimRotation(FRAMEPOINT origin, const C2Vector& offset, float radians);
|
|
virtual void AddAnimScale(FRAMEPOINT origin, const C2Vector& offset, const C2Vector& scale);
|
|
virtual void Draw(CRenderBatch* batch);
|
|
virtual void StoreAnimPosition();
|
|
virtual void ResetAnimPosition();
|
|
virtual void LoadXML(XMLNode* node, CStatus* status);
|
|
virtual float GetWidth();
|
|
virtual float GetHeight();
|
|
virtual int32_t IsObjectLoaded();
|
|
virtual void OnFrameSizeChanged(const CRect& rect);
|
|
|
|
CSimpleTexture(CSimpleFrame* frame, uint32_t drawLayer, int32_t show);
|
|
CGxTex* GetGxTex();
|
|
void GetTexCoord(C2Vector* texCoords);
|
|
int32_t GetTexture(char* buffer, uint32_t bufferLen);
|
|
void PostLoadXML(XMLNode* node, CStatus* status);
|
|
void SetBlendMode(EGxBlend blend);
|
|
void SetPosition(const CRect& rect, C3Vector* position);
|
|
void SetRotation(float radians, float centerX, float centerY);
|
|
void SetShader(CGxShader* shader);
|
|
void SetTexCoord(const C2Vector* texCoords);
|
|
void SetTexCoord(const CRect& texRect);
|
|
int32_t SetTexture(CTexture* texture);
|
|
int32_t SetTexture(const CImVector& color);
|
|
int32_t SetTexture(const char* fileName, int32_t wrapU, int32_t wrapV, EGxTexFilter filter, TextureImageMode mode);
|
|
};
|
|
|
|
#endif
|