font renderer update
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
#include "wiSpriteFont.h"
|
||||
#include "wiHelper.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace wiGraphics;
|
||||
|
||||
void wiSpriteFont::FixedUpdate()
|
||||
{
|
||||
|
||||
}
|
||||
void wiSpriteFont::Update(float dt)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void wiSpriteFont::Draw(CommandList cmd) const
|
||||
{
|
||||
wiFont::Draw(text, params, cmd);
|
||||
}
|
||||
|
||||
int wiSpriteFont::textWidth() const
|
||||
{
|
||||
return wiFont::textWidth(text, params);
|
||||
}
|
||||
int wiSpriteFont::textHeight() const
|
||||
{
|
||||
return wiFont::textHeight(text, params);
|
||||
}
|
||||
|
||||
void wiSpriteFont::SetText(const string& value)
|
||||
{
|
||||
wiHelper::StringConvert(value, text);
|
||||
}
|
||||
void wiSpriteFont::SetText(const wstring& value)
|
||||
{
|
||||
text = value;
|
||||
}
|
||||
|
||||
string wiSpriteFont::GetTextA() const
|
||||
{
|
||||
string retVal;
|
||||
wiHelper::StringConvert(text, retVal);
|
||||
return retVal;
|
||||
}
|
||||
const wstring& wiSpriteFont::GetText() const
|
||||
{
|
||||
return text;
|
||||
}
|
||||
Reference in New Issue
Block a user