Cogs.Rendering
|
Encapsulates state for texture sampling in a state object. More...
#include <SamplerState.h>
Public Types | |
enum | AddressMode { Clamp , Wrap , Mirror , Border , AddressMode_Size } |
Addressing modes to use when sampling textures. More... | |
enum | FilterMode { MinMagMipPoint , MinMagMipLinear , ComparisonMinMagMipPoint , ComparisonMinMagMipLinear , FilterMode_Size } |
Filter modes to specify how texture data is treated when sampled. More... | |
enum | ComparisonFunction { Never , Less , Equal , LessEqual , Greater , NotEqual , GreaterEqual , Always , ComparisonFunction_Size } |
Comparison functions applied when sampling depth buffers using comparison filters. More... | |
Static Public Member Functions | |
static SamplerState & | DefaultState () |
Constructs a sampler state initialized with the default values. | |
Public Attributes | |
AddressMode | addressModeS |
Specifies the addressing mode along the S axis in texture coordinate space. | |
AddressMode | addressModeT |
Specifies the addressing mode along the T axis in texture coordinate space. | |
AddressMode | addressModeW |
Specifies the addressing mode along the W axis in texture coordinate space. | |
FilterMode | filter |
Specifies the filter to use for texture sampling. | |
ComparisonFunction | comparisonFunction |
Specifies the comparison function to use when applying a comparison sampler. | |
unsigned int | maxAnisotropy |
Specifies the maximum number of anisotropic samples to use when sampling a texture. | |
float | borderColor [4] |
Encapsulates state for texture sampling in a state object.
Sampler state can be used to control how textures are sampled, e.g if texture coordinates wrap around when going outside [0, 1] range, if mipmaps are used etc.
Addressing modes to use when sampling textures.
Filter modes to specify how texture data is treated when sampled.
|
inlinestatic |
Constructs a sampler state initialized with the default values.
References MinMagMipLinear, Never, and Wrap.
AddressMode Cogs::SamplerState::addressModeS |
Specifies the addressing mode along the S axis in texture coordinate space.
Referenced by std::equal_to< Cogs::SamplerState >::operator()(), and std::hash< Cogs::SamplerState >::operator()().
AddressMode Cogs::SamplerState::addressModeT |
Specifies the addressing mode along the T axis in texture coordinate space.
Referenced by std::equal_to< Cogs::SamplerState >::operator()(), and std::hash< Cogs::SamplerState >::operator()().
AddressMode Cogs::SamplerState::addressModeW |
Specifies the addressing mode along the W axis in texture coordinate space.
Referenced by std::equal_to< Cogs::SamplerState >::operator()(), and std::hash< Cogs::SamplerState >::operator()().
float Cogs::SamplerState::borderColor[4] |
Specifies the border color to apply if the addressing mode is Border and texture coordinates are outside the [0, 1] range.
ComparisonFunction Cogs::SamplerState::comparisonFunction |
Specifies the comparison function to use when applying a comparison sampler.
Referenced by std::equal_to< Cogs::SamplerState >::operator()(), and std::hash< Cogs::SamplerState >::operator()().
FilterMode Cogs::SamplerState::filter |
Specifies the filter to use for texture sampling.
Referenced by std::equal_to< Cogs::SamplerState >::operator()(), and std::hash< Cogs::SamplerState >::operator()().
unsigned int Cogs::SamplerState::maxAnisotropy |
Specifies the maximum number of anisotropic samples to use when sampling a texture.
Referenced by std::equal_to< Cogs::SamplerState >::operator()(), and std::hash< Cogs::SamplerState >::operator()().