Match and link CTextInstruction

This commit is contained in:
2025-05-22 16:55:51 -07:00
parent 9d3246ad2f
commit 664b03c363
16 changed files with 151 additions and 38 deletions

View File

@@ -0,0 +1,17 @@
#ifndef _CTEXTINSTRUCTION
#define _CTEXTINSTRUCTION
#include "Kyoto/Text/CInstruction.hpp"
class CTextInstruction : public CInstruction {
public:
static CTextInstruction* Create(const wchar_t* str, const int len);
CTextInstruction(const wchar_t* str, int length);
void Invoke(CFontRenderState& state, CTextRenderBuffer* buffer) const override;
private:
int mLength;
wchar_t mString[1];
};
#endif // _CTEXTINSTRUCTION