Cogs.Core
Public Attributes | List of all members
Cogs::Core::FontLoadInfo Struct Reference

Defines information used to load a Font resource. More...

#include <IFontLoader.h>

Inheritance diagram for Cogs::Core::FontLoadInfo:
Cogs::Core::ResourceLoadInfoBase

Public Attributes

FontDefinition definition
 Definition of the Font resource.
 
bool preloading = false
 If the resource is currently preloading, and is not ready for loading yet.
 
- Public Attributes inherited from Cogs::Core::ResourceLoadInfoBase
ResourceId resourceId = NoResourceId
 Unique resource identifier. Must be unique among resources of the same kind.
 
std::string resourcePath
 Resource path. Used to locate resource.
 
std::string resourceName
 Desired resource name. If no name is given, a default name will be chosen.
 
std::vector< uint8_t > resourceData
 Resource load data.
 
ResourceFlags resourceFlags = ResourceFlags::None
 Desired resource flags. Flags will be validated and, if possible, applied to the loaded resource.
 
ResourceLoadFlags loadFlags = ResourceLoadFlags::None
 Desired loading flags. Used to specify how the resource will be loaded.
 
ResourceHandleBase handle = ResourceHandleBase::NoHandle
 Handle to resource structure for holding actual resource data.
 
bool preloading = false
 
ResourceProtocol protocol = ResourceProtocol::None
 

Additional Inherited Members

- Public Member Functions inherited from Cogs::Core::ResourceLoadInfoBase
bool loadSync () const
 
bool isReload () const
 
bool shouldAutoReload () const
 
bool noDefaultName () const
 

Detailed Description

Defines information used to load a Font resource.

Definition at line 16 of file IFontLoader.h.

Member Data Documentation

◆ definition

FontDefinition Cogs::Core::FontLoadInfo::definition

Definition of the Font resource.

Definition at line 19 of file IFontLoader.h.

Referenced by Cogs::Core::FontManager::loadFont().

◆ preloading

bool Cogs::Core::FontLoadInfo::preloading = false

If the resource is currently preloading, and is not ready for loading yet.

Definition at line 22 of file IFontLoader.h.


The documentation for this struct was generated from the following file: