Cogs.Core
Public Attributes | List of all members
Cogs::Core::TextureLoadInfo Struct Reference
Inheritance diagram for Cogs::Core::TextureLoadInfo:
Cogs::Core::ResourceLoadInfoBase

Public Attributes

ResourceDimensions target = ResourceDimensions::Unknown
 
TextureFormat format = TextureFormat::R8G8B8A8_UNORM_SRGB
 
SamplerState::AddressMode addressMode = SamplerState::Wrap
 
int width = 0
 
int height = 0
 
int depth = 0
 
int layers = 0
 
int stride = 0
 
int8_t flip = 0
 
bool mipMaps = true
 
bool preloading = false
 
bool getColorSpaceFromLoadInfo = false
 
- 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

Definition at line 15 of file ITextureLoader.h.

Member Data Documentation

◆ addressMode

SamplerState::AddressMode Cogs::Core::TextureLoadInfo::addressMode = SamplerState::Wrap

Definition at line 21 of file ITextureLoader.h.

◆ depth

int Cogs::Core::TextureLoadInfo::depth = 0

Definition at line 24 of file ITextureLoader.h.

◆ flip

int8_t Cogs::Core::TextureLoadInfo::flip = 0

Definition at line 27 of file ITextureLoader.h.

◆ format

TextureFormat Cogs::Core::TextureLoadInfo::format = TextureFormat::R8G8B8A8_UNORM_SRGB

Definition at line 20 of file ITextureLoader.h.

◆ getColorSpaceFromLoadInfo

bool Cogs::Core::TextureLoadInfo::getColorSpaceFromLoadInfo = false

Definition at line 30 of file ITextureLoader.h.

◆ height

int Cogs::Core::TextureLoadInfo::height = 0

Definition at line 23 of file ITextureLoader.h.

◆ layers

int Cogs::Core::TextureLoadInfo::layers = 0

Definition at line 25 of file ITextureLoader.h.

◆ mipMaps

bool Cogs::Core::TextureLoadInfo::mipMaps = true

Definition at line 28 of file ITextureLoader.h.

◆ preloading

bool Cogs::Core::TextureLoadInfo::preloading = false

Definition at line 29 of file ITextureLoader.h.

◆ stride

int Cogs::Core::TextureLoadInfo::stride = 0

Definition at line 26 of file ITextureLoader.h.

◆ target

ResourceDimensions Cogs::Core::TextureLoadInfo::target = ResourceDimensions::Unknown

Definition at line 19 of file ITextureLoader.h.

◆ width

int Cogs::Core::TextureLoadInfo::width = 0

Definition at line 22 of file ITextureLoader.h.


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