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-19 00:07:31 +00:00
|
|
|
|
|
|
|
class CFontRenderState : public CSaveableState
|
|
|
|
{
|
2016-03-19 03:58:01 +00:00
|
|
|
friend class CLineInstruction;
|
|
|
|
|
|
|
|
/* void* x54_ = 0; top-to-bottom state */
|
2016-03-19 00:07:31 +00:00
|
|
|
CDrawStringOptions x58_drawOpts;
|
|
|
|
u32 x6c_ = 0;
|
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__
|