2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-02 00:13:33 +00:00
metaforce/Runtime/GuiSys/CFontRenderState.hpp
2016-03-19 20:37:08 -10:00

39 lines
964 B
C++

#ifndef __URDE_CFONTRENDERSTATE_HPP__
#define __URDE_CFONTRENDERSTATE_HPP__
#include "CGuiTextSupport.hpp"
#include "CSaveableState.hpp"
#include "CDrawStringOptions.hpp"
namespace urde
{
class CLineInstruction;
class CBlockInstruction;
class CFontRenderState : public CSaveableState
{
friend class CLineInstruction;
friend class CBlockInstruction;
friend class CTextInstruction;
CBlockInstruction* x54_curBlock = nullptr;
CDrawStringOptions x58_drawOpts;
s32 x6c_curX = 0;
s32 x70_curY;
const CLineInstruction* x74_currentLineInst = nullptr;
bool xa0_ = true;
std::vector<CSaveableState> xa4_pushedStates;
public:
CFontRenderState();
zeus::CColor ConvertToTextureSpace(const CTextColor& col) const;
void PopState();
void PushState();
void SetColor(EColorType tp, const CTextColor& col);
void RefreshPalette();
void RefreshColor(EColorType tp);
};
}
#endif // __URDE_CFONTRENDERSTATE_HPP__