metaforce/Runtime/GuiSys/CTextRenderBuffer.cpp

68 lines
1.3 KiB
C++
Raw Normal View History

2016-03-19 00:07:31 +00:00
#include "CTextRenderBuffer.hpp"
#include "CFontImageDef.hpp"
#include "Graphics/CGraphicsPalette.hpp"
namespace urde
{
CTextRenderBuffer::CTextRenderBuffer(EMode mode)
: x0_mode(mode)
{
for (int i=0 ; i<64 ; ++i)
{
x54_palettes[i].reset(new CGraphicsPalette(EPaletteFormat::RGB5A3, 4));
++x50_paletteCount;
}
}
void CTextRenderBuffer::SetPrimitive(const Primitive&, int)
{
}
CTextRenderBuffer::Primitive CTextRenderBuffer::GetPrimitive(int) const
{
}
void CTextRenderBuffer::GetOutStream()
{
}
void CTextRenderBuffer::VerifyBuffer()
{
if (x34_blob.empty())
x34_blob.resize(x44_blobSize);
}
void CTextRenderBuffer::Render(const zeus::CColor& col, float) const
{
}
void CTextRenderBuffer::AddImage(const zeus::CVector2i& vec, const CFontImageDef&)
{
}
void CTextRenderBuffer::AddCharacter(const zeus::CVector2i& vec, s16, const zeus::CColor&)
{
}
void CTextRenderBuffer::AddPaletteChange(const CGraphicsPalette& palette)
{
}
void CTextRenderBuffer::AddFontChange(const TToken<CRasterFont>& font)
{
}
int CTextRenderBuffer::GetMatchingPaletteIndex(const CGraphicsPalette& palette)
{
}
CGraphicsPalette* CTextRenderBuffer::GetNextAvailablePalette()
{
if (x254_nextPalette >= 64)
x254_nextPalette = 0;
return x54_palettes[x254_nextPalette++].get();
}
}