Profile, TextBlock, Camera (+CameraInt.h), ParticleSystem2 (emitters, track sampling, sort queue), RibbonEmitter, GfxSingletonManager managers and the v1 CParticleEmitter destructor. All pass or approved with explained diffs; 0 fails. Callee-cleanup helpers declared __stdcall, float->int paths use CMath::fint_ (binary uses fistp). CLightning fields named only; it is WoW/Common code. _Triage CAngle removed, Camera.h repointed to CameraInt.h. CM2SceneRender Render calls cast for the new signature. Services links freetype for the Gxu font headers. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
51 lines
2.7 KiB
C++
51 lines
2.7 KiB
C++
#ifndef ENGINE_SOURCE_SERVICES_TEXTBLOCK_H
|
|
#define ENGINE_SOURCE_SERVICES_TEXTBLOCK_H
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include "Engine/Source/Base/Handle.h"
|
|
#include "Engine/Source/Services/Types.h"
|
|
#include "Engine/Source/Storm/H/stpl.h"
|
|
#include "Engine/Source/Tempest/C3Vector.h"
|
|
|
|
class C2Vector;
|
|
class CImVector;
|
|
struct CGxFont;
|
|
struct CGxString;
|
|
|
|
class TEXTBLOCK : public CHandleObject {
|
|
public:
|
|
/* 0008 */ CGxString* m_string;
|
|
|
|
TEXTBLOCK();
|
|
virtual ~TEXTBLOCK();
|
|
};
|
|
|
|
struct FONTHASHOBJ : public CHandleObject, public TSHashObject<FONTHASHOBJ, HASHKEY_STR> {
|
|
/* 0020 */ CGxFont* m_font;
|
|
|
|
FONTHASHOBJ();
|
|
virtual ~FONTHASHOBJ();
|
|
};
|
|
|
|
void TextBlockAddShadow(HTEXTBLOCK string, CImVector color, const C2Vector& offset);
|
|
HTEXTBLOCK TextBlockCreate(HTEXTFONT font, const char* text, const CImVector& color, const C3Vector& position, float fontHeight, float blockWidth, float blockHeight, uint32_t flags, float charSpacing, float lineSpacing, float scale);
|
|
HTEXTFONT TextBlockGenerateFont(const char* fontName, uint32_t fontFlags, float fontHeight);
|
|
uint32_t TextBlockGetFontFlags(HTEXTFONT font);
|
|
const char* TextBlockGetFontName(HTEXTFONT font);
|
|
CGxFont* TextBlockGetFontPtr(HTEXTFONT font);
|
|
uint32_t TextBlockGetMaxCharsWithinWidth(HTEXTFONT font, const char* text, float fontHeight, float maxWidth, uint32_t numBytes, float* extent, float shadowWidth, float scale, float unused, uint32_t flags);
|
|
uint32_t TextBlockGetMaxCharsWithinWidthAndHeight(HTEXTFONT font, const char* text, float fontHeight, float blockWidth, float blockHeight, uint32_t numBytes, float shadowWidth, float scale, float spacing, uint32_t flags);
|
|
uint32_t TextBlockGetMaxCharsWithinWidthFromEnd(HTEXTFONT font, const char* text, float fontHeight, float maxWidth, uint32_t numBytes, float* extent, float shadowWidth, float scale, float unused, uint32_t flags);
|
|
C3Vector TextBlockGetStringPos(HTEXTBLOCK string);
|
|
CGxString* TextBlockGetStringPtr(HTEXTBLOCK string);
|
|
void TextBlockGetTextExtent(HTEXTFONT font, const char* text, uint32_t numBytes, float fontHeight, float* extent, float shadowWidth, float scale, float unused, uint32_t flags);
|
|
float TextBlockGetWrappedTextHeight(HTEXTFONT font, const char* text, float fontHeight, float blockWidth, const C2Vector& shadowOffset, float scale, float spacing, uint32_t flags);
|
|
void TextBlockRemoveShadow(HTEXTBLOCK string);
|
|
int32_t TextBlockSetGradient(HTEXTBLOCK string, int32_t start, int32_t length);
|
|
void TextBlockSetStringPos(HTEXTBLOCK string, const C3Vector& position);
|
|
void TextBlockUpdateColor(HTEXTBLOCK string, const CImVector& color);
|
|
uint32_t TextBlockWrapText(HTEXTFONT font, const char* text, float fontHeight, float blockWidth, uint32_t* lineStarts, uint32_t maxLines, float shadowWidth, float scale, float unused, uint32_t flags);
|
|
|
|
#endif
|