Add missing CFontInstruction.hpp

This commit is contained in:
2024-10-25 18:43:14 -07:00
parent 62035f1dba
commit 6be96bb361
4 changed files with 31 additions and 10 deletions

View File

@@ -0,0 +1,21 @@
#ifndef _CFONTINSTRUCTION
#define _CFONTINSTRUCTION
#include <Kyoto/TToken.hpp>
#include <Kyoto/Text/CInstruction.hpp>
#include <Kyoto/Text/CRasterFont.hpp>
class CFontInstruction : public CInstruction {
public:
CFontInstruction(const TToken< CRasterFont >& font) : x4_font(font) {}
void Invoke(CFontRenderState& state, CTextRenderBuffer* buf) const override;
void PageInvoke(CFontRenderState& state, CTextRenderBuffer* buf) const override;
void GetAssets(rstl::vector< CToken >& assetsOut) const override;
uint GetAssetCount() const override;
private:
TToken< CRasterFont > x4_font;
};
#endif // _CFONTINSTRUCTION