metaforce/Runtime/GuiSys/CFontImageDef.hpp

30 lines
658 B
C++
Raw Normal View History

2016-03-19 00:07:31 +00:00
#ifndef __URDE_CFONTIMAGEDEF_HPP__
#define __URDE_CFONTIMAGEDEF_HPP__
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
};
}
#endif // __URDE_CFONTIMAGEDEF_HPP__