|
Polyphase Game Engine
|
#include <Font.h>
Public Member Functions | |
| DECLARE_ASSET (Font, Asset) | |
| Font () | |
| virtual | ~Font () |
| virtual void | LoadStream (Stream &stream, Platform platform) override |
| virtual void | SaveStream (Stream &stream, Platform platform) override |
| virtual void | Create () override |
| virtual void | Destroy () override |
| virtual bool | Import (const std::string &path, ImportOptions *options) override |
| virtual void | GatherProperties (std::vector< Property > &outProps) override |
| virtual glm::vec4 | GetTypeColor () override |
| virtual const char * | GetTypeName () override |
| virtual const char * | GetTypeImportExt () override |
| int32_t | GetSize () const |
| int32_t | GetWidth () const |
| int32_t | GetHeight () const |
| float | GetLineSpacing () const |
| const std::vector< Character > & | GetCharacters () const |
| Texture * | GetTexture () const |
| bool | IsBold () const |
| bool | IsItalic () const |
| void | SetTexture (Texture *texture) |
| void | RebuildFont () |
Public Member Functions inherited from Asset | |
| DECLARE_FACTORY_MANAGER (Asset) | |
| DECLARE_FACTORY (Asset, Asset) | |
| DECLARE_OBJECT (Asset, Object) | |
| Asset () | |
| virtual | ~Asset () |
| virtual void | Copy (Asset *srcAsset) |
| const std::string & | GetName () const |
| bool | IsLoaded () const |
| bool | IsRefCounted () const |
| int32_t | GetRefCount () const |
| bool | IsEmbedded () const |
| void | SetEmbedded (bool embed) |
| bool | IsEngineAsset () const |
| void | SetEngineAsset (bool engineAsset) |
| void | SetName (const std::string &name) |
| void | IncrementRefCount () |
| void | DecrementRefCount () |
| void | LoadFile (const char *path, AsyncLoadRequest *request=nullptr) |
| void | LoadEmbedded (const EmbeddedFile *embeddedAsset, AsyncLoadRequest *request=nullptr) |
| void | SaveFile (const char *path, Platform platform) |
| virtual bool | ShouldSnapshotForPie () const |
| bool | IsTransient () const |
| void | SetTransient (bool transient) |
| uint64_t | GetUuid () const |
| void | SetUuid (uint64_t uuid) |
| void | EnsureUuid () |
| void | WriteHeader (Stream &stream) |
Public Member Functions inherited from Object | |
| virtual | ~Object ()=default |
| virtual const char * | RuntimeName () const =0 |
| virtual const char * | RuntimeParentName () const =0 |
| virtual RuntimeId | InstanceRuntimeId () const =0 |
| virtual Object * | QueryInterface (RuntimeId id) const |
| virtual bool | Is (RuntimeId id) const |
| virtual bool | Is (const char *name) const |
| virtual bool | DrawCustomProperty (Property &prop) |
| template<typename T > | |
| T * | As () const |
| virtual bool | Equals (const Object *rhs) const |
Static Public Member Functions | |
| static bool | HandlePropChange (Datum *datum, uint32_t index, const void *newValue) |
Static Public Member Functions inherited from Asset | |
| static AssetHeader | ReadHeader (Stream &stream) |
| static std::string | GetNameFromPath (const std::string &path) |
| static std::string | GetDirectoryFromPath (const std::string &path) |
| static const char * | GetNameFromTypeId (TypeId id) |
| static TypeId | GetTypeIdFromName (const char *name) |
Static Public Member Functions inherited from Object | |
| static const char * | ClassRuntimeName () |
Protected Member Functions | |
| void | ImportXml (const std::string &path, ImportOptions *options) |
Protected Attributes | |
| int32_t | mSize = 32 |
| int32_t | mWidth = 0 |
| int32_t | mHeight = 0 |
| std::vector< Character > | mCharacters |
| TextureRef | mTexture |
| float | mLineSpacing = 0.0f |
| bool | mBold = false |
| bool | mItalic = false |
| bool | mTtf = true |
| FilterType | mFilterType = FilterType::Linear |
| WrapMode | mWrapMode = WrapMode::Clamp |
| bool | mMipmapped = true |
| bool | mFontDirty [MAX_FRAMES] = { } |
Protected Attributes inherited from Asset | |
| uint32_t | mVersion = 0 |
| TypeId | mType = INVALID_TYPE_ID |
| uint64_t | mUuid = 0 |
| bool | mEmbedded = false |
| bool | mLoaded = false |
| bool | mEnableRefCount = true |
| bool | mEngineAsset = false |
| bool | mTransient = false |
| std::string | mName = "Asset" |
| int32_t | mRefCount = 0 |
| Font::Font | ( | ) |
|
virtual |
|
overridevirtual |
Reimplemented from Asset.
|
overridevirtual |
Reimplemented from Asset.
|
overridevirtual |
Reimplemented from Asset.
| const std::vector< Character > & Font::GetCharacters | ( | ) | const |
| int32_t Font::GetHeight | ( | ) | const |
| float Font::GetLineSpacing | ( | ) | const |
| int32_t Font::GetSize | ( | ) | const |
| Texture * Font::GetTexture | ( | ) | const |
|
overridevirtual |
Reimplemented from Asset.
|
overridevirtual |
Reimplemented from Asset.
|
overridevirtual |
Reimplemented from Asset.
| int32_t Font::GetWidth | ( | ) | const |
|
static |
|
overridevirtual |
Reimplemented from Asset.
|
protected |
| bool Font::IsBold | ( | ) | const |
| bool Font::IsItalic | ( | ) | const |
Reimplemented from Asset.
| void Font::RebuildFont | ( | ) |
Reimplemented from Asset.
| void Font::SetTexture | ( | Texture * | texture | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |