|
Castor3D
..
|
Defines a sampler for a texture. More...
Inheritance diagram for Castor3D::Sampler:
Collaboration diagram for Castor3D::Sampler:Classes | |
| class | BinaryParser |
| Sampler loader. More... | |
| class | TextLoader |
| Sampler loader. More... | |
Public Member Functions | |
| C3D_API | Sampler (Engine &p_engine, Castor::String const &p_name=Castor::cuEmptyString) |
| Constructor. More... | |
| virtual C3D_API | ~Sampler () |
| Destructor. More... | |
| virtual C3D_API bool | Initialise ()=0 |
| Initialises the sampler. More... | |
| virtual C3D_API void | Cleanup ()=0 |
| Cleanups the sampler. More... | |
| virtual C3D_API bool | Bind (uint32_t p_index) const =0 |
| Applies the sampler. More... | |
| virtual C3D_API void | Unbind (uint32_t p_index) const =0 |
| Removes the sampler. More... | |
| eINTERPOLATION_MODE | GetInterpolationMode (eINTERPOLATION_FILTER p_eFilter) const |
| Retrieves the interpolation mode for given filter. More... | |
| void | SetInterpolationMode (eINTERPOLATION_FILTER p_eFilter, eINTERPOLATION_MODE p_mode) |
| Defines the interpolation mode for given filter. More... | |
| eWRAP_MODE | GetWrappingMode (eTEXTURE_UVW p_eUVW) const |
| Retrieves the wrapping mode for given dimension. More... | |
| void | SetWrappingMode (eTEXTURE_UVW p_eUVW, eWRAP_MODE p_mode) |
| Defines the wrapping mode for given dimension. More... | |
| real | GetMaxAnisotropy () const |
| Retrieves the maximal anisotropy filtering value. More... | |
| void | SetMaxAnisotropy (real p_rValue) |
| Defines the maximal anisotropy filtering value. More... | |
| real | GetMinLod () const |
| Retrieves the minimal LOD level. More... | |
| void | SetMinLod (real p_rLod) |
| Defines the minimal LOD level. More... | |
| real | GetMaxLod () const |
| Retrieves the maximal LOD level. More... | |
| void | SetMaxLod (real p_rLod) |
| Defines the maximal LOD level. More... | |
| real | GetLodBias () const |
| Retrieves the LOD bias. More... | |
| void | SetLodBias (real p_rLod) |
| Defines the LOD bias. More... | |
| Castor::Colour const & | GetBorderColour () const |
| Retrieves the texture border colour. More... | |
| void | SetBorderColour (Castor::Colour const &p_crColour) |
| Defines the texture border colour. More... | |
| Castor::String const & | GetName () const |
| Retrieves the sampler name. More... | |
| void | SetName (Castor::String const &p_name) |
| Defines the sampler name. More... | |
Defines a sampler for a texture.
| C3D_API Castor3D::Sampler::Sampler | ( | Engine & | p_engine, |
| Castor::String const & | p_name = Castor::cuEmptyString |
||
| ) |
Constructor.
| [in] | p_name | The sampler name |
| [in] | p_engine | The core engine |
|
virtual |
Destructor.
|
pure virtual |
Applies the sampler.
| [in] | p_index | The sampler index |
true if ok
|
pure virtual |
Cleanups the sampler.
|
inline |
Retrieves the texture border colour.
|
inline |
Retrieves the interpolation mode for given filter.
| [in] | p_eFilter | The concerned filter |
|
inline |
Retrieves the LOD bias.
|
inline |
Retrieves the maximal anisotropy filtering value.
|
inline |
Retrieves the maximal LOD level.
|
inline |
Retrieves the minimal LOD level.
|
inline |
Retrieves the sampler name.
|
inline |
Retrieves the wrapping mode for given dimension.
| [in] | p_eUVW | The dimension |
|
pure virtual |
Initialises the sampler.
true if ok
|
inline |
Defines the texture border colour.
| [in] | p_crColour | The new value |
|
inline |
Defines the interpolation mode for given filter.
| [in] | p_eFilter | The concerned filter |
| [in] | p_mode | The wanted mode |
|
inline |
Defines the LOD bias.
| [in] | p_rLod | The new value |
|
inline |
Defines the maximal anisotropy filtering value.
| [in] | p_rValue | The new value |
|
inline |
Defines the maximal LOD level.
| [in] | p_rLod | The new value |
|
inline |
Defines the minimal LOD level.
| [in] | p_rLod | The new value |
|
inline |
Defines the sampler name.
| [in] | p_name | The name |
|
inline |
Defines the wrapping mode for given dimension.
| [in] | p_eUVW | The dimension |
| [in] | p_mode | The wrapping mode |
|
pure virtual |
Removes the sampler.
| [in] | p_index | The sampler index |
1.8.15