Cogs.Core
Public Member Functions | Public Attributes | List of all members
Cogs::Core::TextureWithSampler Struct Reference

Public Member Functions

size_t hash (size_t hashValue=Cogs::hash()) const
 

Public Attributes

TextureHandle handle = TextureHandle::NoHandle
 Handle to a texture resource, or TextureHandle::NoHandle if texture should be disabled.
 
SamplerState::AddressMode sMode = SamplerState::Wrap
 Address mode to use when rendering with this texture.
 
SamplerState::AddressMode tMode = SamplerState::Wrap
 
SamplerState::AddressMode uMode = SamplerState::Wrap
 
SamplerState::FilterMode filterMode = SamplerState::FilterMode::MinMagMipLinear
 Filter mode to use when rendering with this texture.
 
TextureDimensions dimensions = TextureDimensions::Texture2D
 Expected dimensions of the texture property.
 

Detailed Description

Definition at line 91 of file MaterialProperty.h.

Member Function Documentation

◆ hash()

size_t Cogs::Core::TextureWithSampler::hash ( size_t  hashValue = Cogs::hash()) const
inline

Definition at line 107 of file MaterialProperty.h.

Member Data Documentation

◆ dimensions

TextureDimensions Cogs::Core::TextureWithSampler::dimensions = TextureDimensions::Texture2D

Expected dimensions of the texture property.

Definition at line 105 of file MaterialProperty.h.

Referenced by Cogs::Core::Material::addTextureProperty().

◆ filterMode

SamplerState::FilterMode Cogs::Core::TextureWithSampler::filterMode = SamplerState::FilterMode::MinMagMipLinear

Filter mode to use when rendering with this texture.

Definition at line 102 of file MaterialProperty.h.

Referenced by Cogs::Core::Material::addTextureProperty(), Cogs::Core::Material::setTextureFilterMode(), and Cogs::Core::MaterialInstance::setTextureFilterMode().

◆ handle

TextureHandle Cogs::Core::TextureWithSampler::handle = TextureHandle::NoHandle

◆ sMode

SamplerState::AddressMode Cogs::Core::TextureWithSampler::sMode = SamplerState::Wrap

Address mode to use when rendering with this texture.

Definition at line 97 of file MaterialProperty.h.

Referenced by Cogs::Core::Material::addTextureProperty(), and Cogs::Core::Material::setTextureAddressMode().

◆ tMode

SamplerState::AddressMode Cogs::Core::TextureWithSampler::tMode = SamplerState::Wrap

Definition at line 98 of file MaterialProperty.h.

◆ uMode

SamplerState::AddressMode Cogs::Core::TextureWithSampler::uMode = SamplerState::Wrap

Definition at line 99 of file MaterialProperty.h.


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