metaforce/Runtime/GuiSys/CFontRenderState.hpp

39 lines
964 B
C++
Raw Normal View History

2016-03-19 00:07:31 +00:00
#ifndef __URDE_CFONTRENDERSTATE_HPP__
#define __URDE_CFONTRENDERSTATE_HPP__
#include "CGuiTextSupport.hpp"
#include "CSaveableState.hpp"
#include "CDrawStringOptions.hpp"
namespace urde
{
2016-03-19 03:58:01 +00:00
class CLineInstruction;
2016-03-20 06:37:08 +00:00
class CBlockInstruction;
2016-03-19 00:07:31 +00:00
class CFontRenderState : public CSaveableState
{
2016-03-19 03:58:01 +00:00
friend class CLineInstruction;
2016-03-20 06:37:08 +00:00
friend class CBlockInstruction;
friend class CTextInstruction;
2016-03-19 03:58:01 +00:00
2016-03-20 06:37:08 +00:00
CBlockInstruction* x54_curBlock = nullptr;
2016-03-19 00:07:31 +00:00
CDrawStringOptions x58_drawOpts;
2016-03-20 06:37:08 +00:00
s32 x6c_curX = 0;
s32 x70_curY;
2016-03-19 03:58:01 +00:00
const CLineInstruction* x74_currentLineInst = nullptr;
2016-03-19 00:07:31 +00:00
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__