Kanzi  3.9.7
Kanzi Engine API
kanzi::Sampler::CreateInfo Struct Reference

#include <kanzi/core.ui/graphics2d/sampler.hpp>

Public Member Functions

 CreateInfo (MipmapMode mipmapMode, Filter minificationFilter, Filter magnificationFilter, AddressingMode addressingMode, GraphicsCompareFunction depthCompareFunction, float anisotropy, float mipLodBias, float minLod, float maxLod)
 

Public Attributes

AddressingMode addressingMode
 Texture addressing mode. Default CreateInfo constructor initializes this to Sampler::AddressingModeClamp. More...
 
float anisotropy
 Texture anisotropy. More...
 
GraphicsCompareFunction depthCompareFunction
 Depth compare function. Default CreateInfo constructor initializes this to GraphicsCompareFunctionDisabled. More...
 
Filter magnificationFilter
 Texture magnification filter. Default CreateInfo constructor initializes this to Sampler::FilterNearest. More...
 
float maxLod
 Maximum texture level of detail. More...
 
Filter minificationFilter
 Texture minification filter. Default CreateInfo constructor initializes this to Sampler::FilterNearest. More...
 
float minLod
 Minimum texture level of detail. More...
 
float mipLodBias
 Texture mipmap level of detail bias. More...
 
MipmapMode mipmapMode
 Mipmap mode for the texture. Default CreateInfo constructor initializes this to Sampler::MipmapModeBase. More...
 

Constructor & Destructor Documentation

kanzi::Sampler::CreateInfo::CreateInfo ( MipmapMode  mipmapMode,
Filter  minificationFilter,
Filter  magnificationFilter,
AddressingMode  addressingMode,
GraphicsCompareFunction  depthCompareFunction,
float  anisotropy,
float  mipLodBias,
float  minLod,
float  maxLod 
)
explicit

Member Data Documentation

MipmapMode kanzi::Sampler::CreateInfo::mipmapMode

Mipmap mode for the texture. Default CreateInfo constructor initializes this to Sampler::MipmapModeBase.

Filter kanzi::Sampler::CreateInfo::minificationFilter

Texture minification filter. Default CreateInfo constructor initializes this to Sampler::FilterNearest.

Filter kanzi::Sampler::CreateInfo::magnificationFilter

Texture magnification filter. Default CreateInfo constructor initializes this to Sampler::FilterNearest.

AddressingMode kanzi::Sampler::CreateInfo::addressingMode

Texture addressing mode. Default CreateInfo constructor initializes this to Sampler::AddressingModeClamp.

GraphicsCompareFunction kanzi::Sampler::CreateInfo::depthCompareFunction

Depth compare function. Default CreateInfo constructor initializes this to GraphicsCompareFunctionDisabled.

float kanzi::Sampler::CreateInfo::anisotropy

Texture anisotropy.

Default CreateInfo constructor initializes this to 1.0 (no anisotropy).

Note
Use of anisotropic texture filter requires GL extension.
float kanzi::Sampler::CreateInfo::mipLodBias

Texture mipmap level of detail bias.

Default CreateInfo constructor initializes this to 0.

Note
Using texture Lod controls requires OpenGL ES 3.0.
float kanzi::Sampler::CreateInfo::minLod

Minimum texture level of detail.

Default CreateInfo constructor initializes this to -1000 (effectively no clamping for level of detail).

Note
Using texture Lod controls requires OpenGL ES 3.0.
float kanzi::Sampler::CreateInfo::maxLod

Maximum texture level of detail.

Default CreateInfo constructor initializes this to 1000 (effectively no clamping for level of detail).

Note
Using texture Lod controls requires OpenGL ES 3.0.

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