2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 09:07:43 +00:00

GuiSys and FrontEnd work

This commit is contained in:
Jack Andersen
2016-12-30 14:51:51 -10:00
parent 20677700e0
commit db7c2aeaf2
20 changed files with 496 additions and 79 deletions

View File

@@ -17,8 +17,9 @@ class CTextExecuteBuffer
{
friend class CGuiTextSupport;
friend class CTextRenderBufferPages;
using InstList = std::list<std::shared_ptr<CInstruction>>;
std::list<std::shared_ptr<CInstruction>> x0_instList;
InstList x0_instList;
u32 x14_ = 0;
CSaveableState x18_textState;
CBlockInstruction* xa0_curBlock = nullptr;
@@ -39,7 +40,11 @@ public:
xa8_curWordIt = x0_instList.begin();
}
CTextRenderBuffer CreateTextRenderBuffer() const;
CTextRenderBuffer BuildRenderBuffer() const;
CTextRenderBuffer BuildRenderBufferPage(InstList::const_iterator start,
InstList::const_iterator pgStart,
InstList::const_iterator pgEnd) const;
std::list<CTextRenderBuffer> BuildRenderBufferPages(const zeus::CVector2i& extent) const;
std::vector<CToken> GetAssets() const;
void AddString(const wchar_t* str, int len);
void AddStringFragment(const wchar_t* str, int len);