metaforce/Runtime/GuiSys/CFontRenderState.hpp

43 lines
1.1 KiB
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-21 00:25:53 +00:00
friend class CImageInstruction;
friend class CWordInstruction;
2016-03-19 03:58:01 +00:00
2016-12-30 06:37:01 +00:00
CBlockInstruction* x88_curBlock = nullptr;
CDrawStringOptions x8c_drawOpts;
s32 xd4_curX = 0;
s32 xd8_curY = 0;
const CLineInstruction* xdc_currentLineInst = nullptr;
std::vector<u32> xe8_;
std::vector<u8> xf8_;
bool x108_lineInitialized = true;
std::list<CSaveableState> x10c_pushedStates;
2016-03-19 00:07:31 +00:00
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__