An OGLplus object encapsulating the OpenGL sampler functionality. More...
#include </home/chochlik/devel/oglplus/include/oglplus/sampler.hpp>
Public Types | |
typedef TextureUnitSelector | Target |
The target for sampler binding. | |
Public Member Functions | |
void | Bind (TextureUnitSelector unit) |
Bind this sampler to the specified texture unit. More... | |
Vector< GLfloat, 4 > | BorderColor (TypeTag< GLfloat >) const |
Gets the texture border color. More... | |
void | BorderColor (Vector< GLfloat, 4 > color) |
Sets the texture border color. More... | |
Vector< GLint, 4 > | BorderColor (TypeTag< GLint >) const |
Gets the texture border color. More... | |
void | BorderColor (Vector< GLint, 4 > color) |
Sets the texture border color. More... | |
Vector< GLuint, 4 > | BorderColor (TypeTag< GLuint >) const |
Gets the texture border color. More... | |
void | BorderColor (Vector< GLuint, 4 > color) |
Sets the texture border color. More... | |
TextureCompareMode | CompareMode (void) const |
Gets the compare mode. More... | |
void | CompareMode (TextureCompareMode mode) |
Sets the compare mode. More... | |
CompareFunction | CompareFunc (void) const |
Gets the compare function. More... | |
void | CompareFunc (CompareFunction func) |
Sets the compare function. More... | |
GLfloat | LODBias (void) const |
Gets the LOD bias value. More... | |
void | LODBias (GLfloat value) |
Sets the LOD bias value. More... | |
TextureMagFilter | MagFilter (void) const |
Gets the magnification filter. More... | |
void | MagFilter (TextureMagFilter filter) |
Sets the magnification filter. More... | |
TextureMinFilter | MinFilter (void) const |
Gets the minification filter. More... | |
void | MinFilter (TextureMinFilter filter) |
Sets the minification filter. More... | |
GLfloat | MinLOD (void) const |
Gets minimal LOD value. More... | |
void | MinLOD (GLfloat value) |
Sets minimal LOD value. More... | |
GLfloat | MaxLOD (void) const |
Gets maximal LOD value. More... | |
void | MaxLOD (GLfloat value) |
Sets maximal LOD value. More... | |
TextureWrap | Wrap (TextureWrapCoord coord) const |
Gets the wrap parameter (TEXTURE_WRAP_*) More... | |
void | Wrap (TextureWrapCoord coord, TextureWrap mode) |
Sets the wrap parameter (TEXTURE_WRAP_*) More... | |
TextureWrap | WrapS (void) const |
Gets the wrap parameter for the S coordinate. More... | |
void | WrapS (TextureWrap mode) |
Sets the wrap parameter for the S coordinate. More... | |
TextureWrap | WrapT (void) const |
Gets the wrap parameter for the T coordinate. More... | |
void | WrapT (TextureWrap mode) |
Sets the wrap parameter for the T coordinate. More... | |
TextureWrap | WrapR (void) const |
Gets the wrap parameter for the R coordinate. More... | |
void | WrapR (TextureWrap mode) |
Sets the wrap parameter for the R coordinate. More... | |
bool | Seamless (void) const |
Gets the seamless cubemap setting. More... | |
void | Seamless (bool enable) |
Sets the seamless cubemap setting. More... | |
Static Public Member Functions | |
static void | Bind (GLuint first, GLsizei count, const GLuint *names) |
Bind the specified samplers to the specified texture units. More... | |
static void | Unbind (TextureUnitSelector unit) |
Unbind the current sampler from the specified texture unit. More... | |
An OGLplus object encapsulating the OpenGL sampler functionality.
|
inherited |
Bind this sampler to the specified texture unit.
|
staticinherited |
Bind the specified samplers to the specified texture units.
Error | Requires OpenGL 4.4 or the GL_ARB_multi_bind extension. |
References OGLPLUS_VERIFY.
Gets the texture border color.
GL_TEXTURE_BORDER_COLOR
References OGLPLUS_CHECK.
|
inherited |
Sets the texture border color.
GL_TEXTURE_BORDER_COLOR
References OGLPLUS_CHECK.
Gets the texture border color.
GL_TEXTURE_BORDER_COLOR
References OGLPLUS_CHECK.
|
inherited |
Sets the texture border color.
GL_TEXTURE_BORDER_COLOR
References OGLPLUS_CHECK.
Gets the texture border color.
GL_TEXTURE_BORDER_COLOR
References OGLPLUS_CHECK.
|
inherited |
Sets the texture border color.
GL_TEXTURE_BORDER_COLOR
References OGLPLUS_CHECK.
|
inherited |
Gets the compare function.
GL_TEXTURE_COMPARE_FUNC
|
inherited |
Sets the compare function.
GL_TEXTURE_COMPARE_FUNC
References OGLPLUS_CHECK.
|
inherited |
Gets the compare mode.
GL_TEXTURE_COMPARE_MODE
|
inherited |
Sets the compare mode.
GL_TEXTURE_COMPARE_MODE
References OGLPLUS_CHECK.
|
inherited |
Gets the LOD bias value.
GL_TEXTURE_LOD_BIAS
|
inherited |
Sets the LOD bias value.
GL_TEXTURE_LOD_BIAS
References OGLPLUS_CHECK.
|
inherited |
Gets the magnification filter.
GL_TEXTURE_MAG_FILTER
|
inherited |
Sets the magnification filter.
GL_TEXTURE_MAG_FILTER
References OGLPLUS_CHECK.
|
inherited |
Gets maximal LOD value.
GL_TEXTURE_MAX_LOD
|
inherited |
Sets maximal LOD value.
GL_TEXTURE_MAX_LOD
References OGLPLUS_CHECK.
|
inherited |
Gets the minification filter.
GL_TEXTURE_MIN_FILTER
|
inherited |
Sets the minification filter.
GL_TEXTURE_MIN_FILTER
References OGLPLUS_CHECK.
|
inherited |
Gets minimal LOD value.
GL_TEXTURE_MIN_LOD
|
inherited |
Sets minimal LOD value.
GL_TEXTURE_MIN_LOD
References OGLPLUS_CHECK.
|
inherited |
Gets the seamless cubemap setting.
GL_TEXTURE_CUBE_MAP_SEAMLESS
|
inherited |
Sets the seamless cubemap setting.
GL_TEXTURE_CUBE_MAP_SEAMLESS
References OGLPLUS_CHECK.
|
staticinherited |
Unbind the current sampler from the specified texture unit.
References OGLPLUS_VERIFY.
|
inherited |
Gets the wrap parameter (TEXTURE_WRAP_*)
Referenced by oglplus::SamplerOps::WrapR(), oglplus::SamplerOps::WrapS(), and oglplus::SamplerOps::WrapT().
|
inherited |
Sets the wrap parameter (TEXTURE_WRAP_*)
References OGLPLUS_CHECK.
|
inherited |
Gets the wrap parameter for the R coordinate.
GL_TEXTURE_WRAP_R
References oglplus::R, and oglplus::SamplerOps::Wrap().
|
inherited |
Sets the wrap parameter for the R coordinate.
GL_TEXTURE_WRAP_R
References oglplus::R, and oglplus::SamplerOps::Wrap().
|
inherited |
Gets the wrap parameter for the S coordinate.
GL_TEXTURE_WRAP_S
References oglplus::S, and oglplus::SamplerOps::Wrap().
|
inherited |
Sets the wrap parameter for the S coordinate.
GL_TEXTURE_WRAP_S
References oglplus::S, and oglplus::SamplerOps::Wrap().
|
inherited |
Gets the wrap parameter for the T coordinate.
GL_TEXTURE_WRAP_T
References oglplus::T, and oglplus::SamplerOps::Wrap().
|
inherited |
Sets the wrap parameter for the T coordinate.
GL_TEXTURE_WRAP_T
References oglplus::T, and oglplus::SamplerOps::Wrap().