metaforce/Runtime/GuiSys/CFontImageDef.hpp

26 lines
567 B
C++
Raw Permalink Normal View History

2018-10-06 20:42:33 -07:00
#pragma once
2016-03-18 17:07:31 -07:00
2016-03-19 17:32:30 -07:00
#include <vector>
#include "Runtime/CToken.hpp"
#include <zeus/CVector2f.hpp>
2016-03-19 17:32:30 -07:00
2021-04-10 01:42:06 -07:00
namespace metaforce {
2016-03-19 17:32:30 -07:00
class CTexture;
2016-03-18 17:07:31 -07:00
2018-12-07 21:30:43 -08:00
class CFontImageDef {
2016-03-19 23:37:08 -07:00
public:
2018-12-07 21:30:43 -08:00
float x0_fps;
std::vector<TLockedToken<CTexture>> x4_texs;
zeus::CVector2f x14_cropFactor;
2016-03-19 23:37:08 -07:00
2018-12-07 21:30:43 -08: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-18 17:07:31 -07:00
};
2021-04-10 01:42:06 -07:00
} // namespace metaforce