2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-14 20:31:20 +00:00
metaforce/Runtime/GuiSys/CInstruction.cpp
2016-03-18 14:07:31 -10:00

29 lines
609 B
C++

#include "CInstruction.hpp"
#include "CFontRenderState.hpp"
namespace urde
{
void CInstruction::GetAssets(std::vector<CToken>& assetsOut) const
{
}
size_t CInstruction::GetAssetCount() const
{
return 0;
}
void CColorInstruction::Invoke(CFontRenderState& state, CTextRenderBuffer* buf) const
{
state.SetColor(x4_cType, x8_color);
}
void CColorOverrideInstruction::Invoke(CFontRenderState& state, CTextRenderBuffer* buf) const
{
state.x30_[x4_overrideIdx] = true;
zeus::CColor convCol = state.ConvertToTextureSpace(x8_color);
state.x0_drawStrOpts.x4_vec[x4_overrideIdx] = convCol;
}
}