mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-10 13:07:41 +00:00
Match CFontImageDef, can't link due to extraneous TToken destructor
Former-commit-id: 77b921601a
This commit is contained in:
30
include/Kyoto/Text/CFontImageDef.hpp
Normal file
30
include/Kyoto/Text/CFontImageDef.hpp
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef __CFONTIMAGEDEF_HPP__
|
||||
#define __CFONTIMAGEDEF_HPP__
|
||||
|
||||
#include <Kyoto/Graphics/CTexture.hpp>
|
||||
#include <Kyoto/Math/CVector2f.hpp>
|
||||
#include <Kyoto/TToken.hpp>
|
||||
#include <rstl/vector.hpp>
|
||||
|
||||
class CTexture;
|
||||
class CVector2f;
|
||||
class CFontImageDef {
|
||||
public:
|
||||
CFontImageDef(const TToken< CTexture >& texture, const CVector2f& cropFactor);
|
||||
CFontImageDef(const rstl::vector< TToken< CTexture > >& texture, float fps,
|
||||
const CVector2f& cropFactor);
|
||||
bool IsLoaded() const;
|
||||
//inline short GetWidth() { }
|
||||
int GetHeight() {
|
||||
TToken<CTexture> tex = mTextures[0];
|
||||
return tex.GetT()->GetHeight() * mCropFactor.GetY();
|
||||
}
|
||||
int CalculateBaseline();
|
||||
|
||||
private:
|
||||
float mFPS;
|
||||
rstl::vector< TToken< CTexture > > mTextures;
|
||||
CVector2f mCropFactor;
|
||||
};
|
||||
|
||||
#endif // __CFONTIMAGEDEF__
|
||||
Reference in New Issue
Block a user