2016-03-20 00:32:30 +00:00
|
|
|
#include "CFontImageDef.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
|
|
|
CFontImageDef::CFontImageDef(std::vector<TToken<CTexture>>&& texs,
|
|
|
|
float interval, const zeus::CVector2f& vec)
|
2016-03-20 06:37:08 +00:00
|
|
|
: x0_interval(interval), x4_texs(std::move(texs)), x14_pointsPerTexel(vec)
|
2016-03-20 00:32:30 +00:00
|
|
|
{
|
|
|
|
for (TToken<CTexture>& tok : x4_texs)
|
|
|
|
tok.Lock();
|
|
|
|
}
|
|
|
|
|
|
|
|
CFontImageDef::CFontImageDef(TToken<CTexture>&& tex, const zeus::CVector2f& vec)
|
2016-03-20 06:37:08 +00:00
|
|
|
: x0_interval(0.f), x4_texs({std::move(tex)}), x14_pointsPerTexel(vec)
|
2016-03-20 00:32:30 +00:00
|
|
|
{
|
|
|
|
x4_texs[0].Lock();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CFontImageDef::IsLoaded() const
|
|
|
|
{
|
|
|
|
for (const TToken<CTexture>& tok : x4_texs)
|
|
|
|
if (!tok.IsLoaded())
|
|
|
|
return false;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|