mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 10:27:42 +00:00
Various stubs and imps
This commit is contained in:
28
Runtime/GuiSys/CInstruction.cpp
Normal file
28
Runtime/GuiSys/CInstruction.cpp
Normal file
@@ -0,0 +1,28 @@
|
||||
#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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user