2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 13:47:46 +00:00

CTextExecuteBuffer imps

This commit is contained in:
Jack Andersen
2016-03-19 14:32:30 -10:00
parent 08ccc1be63
commit 7835769a98
13 changed files with 608 additions and 57 deletions

View File

@@ -43,13 +43,24 @@ size_t CFontInstruction::GetAssetCount() const
return 1;
}
void CExtraLineSpaceInstruction::Invoke(CFontRenderState& state, CTextRenderBuffer* buf) const
void CLineExtraSpaceInstruction::Invoke(CFontRenderState& state, CTextRenderBuffer* buf) const
{
state.x44_extraLineSpace = x4_extraSpace;
}
void CLineInstruction::TestLargestFont(int, int, int)
void CLineInstruction::TestLargestFont(s32 w, s32 h, s32 b)
{
if (!x18_largestBaseline)
x18_largestBaseline = b;
if (x14_largestMonoWidth < w)
w = x14_largestMonoWidth;
if (x10_largestMonoHeight < h)
{
x10_largestMonoHeight = h;
x18_largestBaseline = b;
}
}
void CLineInstruction::InvokeLTR(CFontRenderState& state) const
@@ -63,4 +74,12 @@ void CLineInstruction::Invoke(CFontRenderState& state, CTextRenderBuffer* buf) c
state.x74_currentLineInst = this;
}
CTextInstruction::CTextInstruction(const wchar_t* str, int len)
{
}
void CTextInstruction::Invoke(CFontRenderState& state, CTextRenderBuffer* buf) const
{
}
}