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-22 08:15:00 +00:00
|
|
|
: x0_fps(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-22 08:15:00 +00:00
|
|
|
: x0_fps(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;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|