Holds all the information needed of a sampler used during rendering.
More...
Holds all the information needed of a sampler used during rendering.
See SamplerManager::createOrRetrieve() or Sampler::create() for instantiation.
◆ getFiltering()
virtual FILTER nkGraphics::Sampler::getFiltering |
( |
| ) |
const |
|
pure virtual |
- Returns
- The filtering used.
◆ getAddressModeU()
- Returns
- The used address mode on the U axis.
◆ getAddressModeV()
- Returns
- The used address mode in the V axis.
◆ getAddressModeW()
- Returns
- The used address mode on the W axis.
◆ getComparisonFunc()
- Returns
- The comparison function used.
◆ getMipBias()
virtual float nkGraphics::Sampler::getMipBias |
( |
| ) |
const |
|
pure virtual |
- Returns
- The mip bias used.
◆ getMaxAnisotropy()
virtual unsigned int nkGraphics::Sampler::getMaxAnisotropy |
( |
| ) |
const |
|
pure virtual |
- Returns
- The max anisotropy used.
◆ getMinLodLevel()
virtual float nkGraphics::Sampler::getMinLodLevel |
( |
| ) |
const |
|
pure virtual |
- Returns
- The min LOD level used.
◆ getMaxLodLevel()
virtual float nkGraphics::Sampler::getMaxLodLevel |
( |
| ) |
const |
|
pure virtual |
- Returns
- The max LOD level used.
◆ getBorderColorR()
virtual float nkGraphics::Sampler::getBorderColorR |
( |
| ) |
const |
|
pure virtual |
- Returns
- The used border color red component.
◆ getBorderColorG()
virtual float nkGraphics::Sampler::getBorderColorG |
( |
| ) |
const |
|
pure virtual |
- Returns
- The used border color green component.
◆ getBorderColorB()
virtual float nkGraphics::Sampler::getBorderColorB |
( |
| ) |
const |
|
pure virtual |
- Returns
- The used border color blue component.
◆ getBorderColorA()
virtual float nkGraphics::Sampler::getBorderColorA |
( |
| ) |
const |
|
pure virtual |
- Returns
- The used border color alpha component.
◆ getFilteringAsString()
- Returns
- The filtering, translated as a string using the StructToString utility.
◆ getAddressModeUAsString()
- Returns
- The address mode Y, translated as a string using the StructToString utility.
◆ getAddressModeVAsString()
- Returns
- The address mode V, translated as a string using the StructToString utility.
◆ getAddressModeWAsString()
- Returns
- The address mode W, translated as a string using the StructToString utility.
◆ getComparisonFuncAsString()
- Returns
- The comparison function, translated as a string using the StructToString utility.
◆ setBorderColors()
virtual void nkGraphics::Sampler::setBorderColors |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b, |
|
|
float |
a |
|
) |
| |
|
pure virtual |
Sets the border color to use. Border color is used, depending on the addressing mode, when the uvw coordinates go out of [0.0, 1.0].
- Parameters
-
r | The red component to use, between [0.0, 1.0]. |
g | The green component to use, between [0.0, 1.0]. |
b | The blue component to use, between [0.0, 1.0]. |
a | The alpha component to use, between [0.0, 1.0]. |
◆ setBorderColorR()
virtual void nkGraphics::Sampler::setBorderColorR |
( |
float |
value | ) |
|
|
pure virtual |
Individual setter for the border color.
- Parameters
-
value | The red component value to use, between [0.0, 1.0]. |
◆ setBorderColorG()
virtual void nkGraphics::Sampler::setBorderColorG |
( |
float |
value | ) |
|
|
pure virtual |
Individual setter for the border color.
- Parameters
-
value | The green component value to use, between [0.0, 1.0]. |
◆ setBorderColorB()
virtual void nkGraphics::Sampler::setBorderColorB |
( |
float |
value | ) |
|
|
pure virtual |
Individual setter for the border color.
- Parameters
-
value | The blue component value to use, between [0.0, 1.0]. |
◆ setBorderColorA()
virtual void nkGraphics::Sampler::setBorderColorA |
( |
float |
value | ) |
|
|
pure virtual |
Individual setter for the border color.
- Parameters
-
value | The alpha component value to use, between [0.0, 1.0]. |
◆ setLodLevels()
virtual void nkGraphics::Sampler::setLodLevels |
( |
float |
min, |
|
|
float |
max |
|
) |
| |
|
pure virtual |
Sets the LOD levels to use.
- Parameters
-
min | The minimal LOD level to use. |
max | The maximal LOD level to use. |
◆ setMaxAnisotropy()
virtual void nkGraphics::Sampler::setMaxAnisotropy |
( |
unsigned int |
value | ) |
|
|
pure virtual |
Sets the maximal anisotropy level to use.
- Parameters
-
value | The maximal anisotropy level to use. |
◆ setMipMapBias()
virtual void nkGraphics::Sampler::setMipMapBias |
( |
float |
value | ) |
|
|
pure virtual |
Sets the mip bias.
- Parameters
-
◆ setFilterMethod()
virtual void nkGraphics::Sampler::setFilterMethod |
( |
FILTER |
value | ) |
|
|
pure virtual |
Sets the filter method.
- Parameters
-
value | The filtering method to use. |
◆ setAddressModeU()
Sets the address mode.
- Parameters
-
value | The addres mode to use over the u axis. |
◆ setAddressModeV()
Sets the address mode.
- Parameters
-
value | The addres mode to use over the v axis. |
◆ setAddressModeW()
Sets the address mode.
- Parameters
-
value | The addres mode to use over the w axis. |
◆ setComparisonFunc()
virtual void nkGraphics::Sampler::setComparisonFunc |
( |
COMPARISON_FUNC |
value | ) |
|
|
pure virtual |
Sets the comparison function.
- Parameters
-
value | The comparison function to use. |
◆ resetToDefault()
virtual void nkGraphics::Sampler::resetToDefault |
( |
| ) |
|
|
pure virtual |
Resets the sampler to its default configuration.
◆ setFilterMethodFromString()
Sets the filtering method, from a string.
- Parameters
-
value | The filtering method to use. Will be translated through StructToString. |
◆ setAddressModeUFromString()
Sets the address mode on axis u from a string.
- Parameters
-
value | The address mode to use. Will be translated through StructToString. |
◆ setAddressModeVFromString()
Sets the address mode on axis v from a string.
- Parameters
-
value | The address mode to use. Will be translated through StructToString. |
◆ setAddressModeWFromString()
Sets the address mode on axis w from a string.
- Parameters
-
value | The address mode to use. Will be translated through StructToString. |
◆ setComparisonFuncFromString()
Sets the comparison function from a string.
- Parameters
-
value | The comparison function to use. Will be translated through StructToString. |
◆ exportClassToTree()
virtual void nkGraphics::Sampler::exportClassToTree |
( |
nkExport::Node * |
rootNode | ) |
|
|
overridevirtual |
Exports an item into a tree describing its structure and its data.
- Parameters
-
rootNode | The node into which the object has to write its related information. |
Implements nkExport::Exportable.
◆ importClassFromTree()
virtual void nkGraphics::Sampler::importClassFromTree |
( |
nkExport::Node * |
rootNode | ) |
|
|
overridevirtual |
Imports information from a tree which is supposed to describe its structure and data.
- Parameters
-
rootNode | The root node of the tree holding the information. |
Implements nkExport::Exportable.
◆ create()
Creates a standalone resource, linking it to a system, but no manager. This method can be used to allocate a resource and manually manage its lifetime.
- Parameters
-
system | The system to create the resource into. If left to nullptr, then the Singleton instance will be used. |
- Returns
- The created resource instance.
The documentation for this class was generated from the following file:
- Documentation/Headers/NilkinsGraphics/Samplers/Sampler.h