2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-03-19 00:07:31 +00:00
|
|
|
|
2016-03-20 00:32:30 +00:00
|
|
|
#include <vector>
|
|
|
|
#include "CToken.hpp"
|
|
|
|
#include "zeus/CVector2f.hpp"
|
|
|
|
|
2016-03-19 00:07:31 +00:00
|
|
|
namespace urde
|
|
|
|
{
|
2016-03-20 00:32:30 +00:00
|
|
|
class CTexture;
|
2016-03-19 00:07:31 +00:00
|
|
|
|
|
|
|
class CFontImageDef
|
|
|
|
{
|
2016-03-20 06:37:08 +00:00
|
|
|
public:
|
2016-03-22 08:15:00 +00:00
|
|
|
float x0_fps;
|
2017-01-29 03:58:16 +00:00
|
|
|
std::vector<TLockedToken<CTexture>> x4_texs;
|
2017-01-30 06:58:59 +00:00
|
|
|
zeus::CVector2f x14_cropFactor;
|
2016-03-20 06:37:08 +00:00
|
|
|
|
2017-01-29 03:58:16 +00:00
|
|
|
CFontImageDef(const std::vector<TToken<CTexture>>& texs, float fps,
|
2017-01-30 06:58:59 +00:00
|
|
|
const zeus::CVector2f& cropFactor);
|
|
|
|
CFontImageDef(const TToken<CTexture>& tex, const zeus::CVector2f& cropFactor);
|
2016-03-20 00:32:30 +00:00
|
|
|
bool IsLoaded() const;
|
2017-01-30 04:16:20 +00:00
|
|
|
s32 CalculateBaseline() const;
|
|
|
|
s32 CalculateHeight() const;
|
2016-03-19 00:07:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|