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>
|
2019-09-22 21:52:05 +00:00
|
|
|
|
|
|
|
#include "Runtime/CToken.hpp"
|
|
|
|
|
|
|
|
#include <zeus/CVector2f.hpp>
|
2016-03-20 00:32:30 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2016-03-20 00:32:30 +00:00
|
|
|
class CTexture;
|
2016-03-19 00:07:31 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CFontImageDef {
|
2016-03-20 06:37:08 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
float x0_fps;
|
|
|
|
std::vector<TLockedToken<CTexture>> x4_texs;
|
|
|
|
zeus::CVector2f x14_cropFactor;
|
2016-03-20 06:37:08 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
CFontImageDef(const std::vector<TToken<CTexture>>& texs, float fps, const zeus::CVector2f& cropFactor);
|
|
|
|
CFontImageDef(const TToken<CTexture>& tex, const zeus::CVector2f& cropFactor);
|
|
|
|
bool IsLoaded() const;
|
|
|
|
s32 CalculateBaseline() const;
|
|
|
|
s32 CalculateHeight() const;
|
2016-03-19 00:07:31 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|