Class wrapping sampler functions (with direct state access) More...
#include </home/chochlik/devel/oglplus/include/oglplus/sampler.hpp>
Public Types | |
typedef TextureUnitSelector | Target |
Sampler bind targets. | |
Public Member Functions | |
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... | |
void | Filter (TextureFilter filter) const |
Sets both the minification and magnification filter. 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... | |
void | Bind (Target target) const |
Binds this sampler to the specified target (texture unit) More... | |
Static Public Member Functions | |
static void | Bind (Target target, SamplerName sampler) |
Binds the specified sampler to the specified target (tex. unit) More... | |
static void | Bind (GLuint first, const Sequence< SamplerName > &samplers) |
Sequentially bind samplers to texture units starting with first . More... | |
static SamplerName | Binding (Target target) |
Returns the current Sampler bound to specified target (tex. unit) More... | |
Class wrapping sampler functions (with direct state access)
|
staticinherited |
Binds the specified sampler
to the specified target
(tex. unit)
References oglplus::GetGLName().
|
staticinherited |
Sequentially bind samplers
to texture units starting with first
.
Error |
References oglplus::GetGLNames(), and oglplus::Sequence< ObjName >::size().
|
inherited |
Binds this sampler to the specified target
(texture unit)
|
staticinherited |
Returns the current Sampler bound to specified target
(tex. unit)
Vector<GLfloat, 4> oglplus::ObjectOps< tag::DirectState, tag::Sampler >::BorderColor | ( | TypeTag< GLfloat > | ) | const |
Gets the texture border color.
GL_TEXTURE_BORDER_COLOR
void oglplus::ObjectOps< tag::DirectState, tag::Sampler >::BorderColor | ( | Vector< GLfloat, 4 > | color | ) |
Sets the texture border color.
GL_TEXTURE_BORDER_COLOR
Vector<GLint, 4> oglplus::ObjectOps< tag::DirectState, tag::Sampler >::BorderColor | ( | TypeTag< GLint > | ) | const |
Gets the texture border color.
GL_TEXTURE_BORDER_COLOR
void oglplus::ObjectOps< tag::DirectState, tag::Sampler >::BorderColor | ( | Vector< GLint, 4 > | color | ) |
Sets the texture border color.
GL_TEXTURE_BORDER_COLOR
Vector<GLuint, 4> oglplus::ObjectOps< tag::DirectState, tag::Sampler >::BorderColor | ( | TypeTag< GLuint > | ) | const |
Gets the texture border color.
GL_TEXTURE_BORDER_COLOR
void oglplus::ObjectOps< tag::DirectState, tag::Sampler >::BorderColor | ( | Vector< GLuint, 4 > | color | ) |
Sets the texture border color.
GL_TEXTURE_BORDER_COLOR
CompareFunction oglplus::ObjectOps< tag::DirectState, tag::Sampler >::CompareFunc | ( | void | ) | const |
Gets the compare function.
GL_TEXTURE_COMPARE_FUNC
void oglplus::ObjectOps< tag::DirectState, tag::Sampler >::CompareFunc | ( | CompareFunction | func | ) |
Sets the compare function.
GL_TEXTURE_COMPARE_FUNC
TextureCompareMode oglplus::ObjectOps< tag::DirectState, tag::Sampler >::CompareMode | ( | void | ) | const |
Gets the compare mode.
GL_TEXTURE_COMPARE_MODE
void oglplus::ObjectOps< tag::DirectState, tag::Sampler >::CompareMode | ( | TextureCompareMode | mode | ) |
Sets the compare mode.
GL_TEXTURE_COMPARE_MODE
void oglplus::ObjectOps< tag::DirectState, tag::Sampler >::Filter | ( | TextureFilter | filter | ) | const |
Sets both the minification and magnification filter.
GL_TEXTURE_MIN_FILTER
GL_TEXTURE_MAG_FILTER
GLfloat oglplus::ObjectOps< tag::DirectState, tag::Sampler >::LODBias | ( | void | ) | const |
Gets the LOD bias value.
GL_TEXTURE_LOD_BIAS
void oglplus::ObjectOps< tag::DirectState, tag::Sampler >::LODBias | ( | GLfloat | value | ) |
Sets the LOD bias value.
GL_TEXTURE_LOD_BIAS
TextureMagFilter oglplus::ObjectOps< tag::DirectState, tag::Sampler >::MagFilter | ( | void | ) | const |
Gets the magnification filter.
GL_TEXTURE_MAG_FILTER
void oglplus::ObjectOps< tag::DirectState, tag::Sampler >::MagFilter | ( | TextureMagFilter | filter | ) |
Sets the magnification filter.
GL_TEXTURE_MAG_FILTER
GLfloat oglplus::ObjectOps< tag::DirectState, tag::Sampler >::MaxLOD | ( | void | ) | const |
Gets maximal LOD value.
GL_TEXTURE_MAX_LOD
void oglplus::ObjectOps< tag::DirectState, tag::Sampler >::MaxLOD | ( | GLfloat | value | ) |
Sets maximal LOD value.
GL_TEXTURE_MAX_LOD
TextureMinFilter oglplus::ObjectOps< tag::DirectState, tag::Sampler >::MinFilter | ( | void | ) | const |
Gets the minification filter.
GL_TEXTURE_MIN_FILTER
void oglplus::ObjectOps< tag::DirectState, tag::Sampler >::MinFilter | ( | TextureMinFilter | filter | ) |
Sets the minification filter.
GL_TEXTURE_MIN_FILTER
GLfloat oglplus::ObjectOps< tag::DirectState, tag::Sampler >::MinLOD | ( | void | ) | const |
Gets minimal LOD value.
GL_TEXTURE_MIN_LOD
void oglplus::ObjectOps< tag::DirectState, tag::Sampler >::MinLOD | ( | GLfloat | value | ) |
Sets minimal LOD value.
GL_TEXTURE_MIN_LOD
bool oglplus::ObjectOps< tag::DirectState, tag::Sampler >::Seamless | ( | void | ) | const |
Gets the seamless cubemap setting.
GL_TEXTURE_CUBE_MAP_SEAMLESS
void oglplus::ObjectOps< tag::DirectState, tag::Sampler >::Seamless | ( | bool | enable | ) |
Sets the seamless cubemap setting.
GL_TEXTURE_CUBE_MAP_SEAMLESS
TextureWrap oglplus::ObjectOps< tag::DirectState, tag::Sampler >::Wrap | ( | TextureWrapCoord | coord | ) | const |
Gets the wrap parameter (TEXTURE_WRAP_*)
void oglplus::ObjectOps< tag::DirectState, tag::Sampler >::Wrap | ( | TextureWrapCoord | coord, |
TextureWrap | mode | ||
) |
Sets the wrap parameter (TEXTURE_WRAP_*)
TextureWrap oglplus::ObjectOps< tag::DirectState, tag::Sampler >::WrapR | ( | void | ) | const |
Gets the wrap parameter for the R coordinate.
GL_TEXTURE_WRAP_R
References oglplus::R.
void oglplus::ObjectOps< tag::DirectState, tag::Sampler >::WrapR | ( | TextureWrap | mode | ) |
Sets the wrap parameter for the R coordinate.
GL_TEXTURE_WRAP_R
References oglplus::R.
TextureWrap oglplus::ObjectOps< tag::DirectState, tag::Sampler >::WrapS | ( | void | ) | const |
Gets the wrap parameter for the S coordinate.
GL_TEXTURE_WRAP_S
References oglplus::S.
void oglplus::ObjectOps< tag::DirectState, tag::Sampler >::WrapS | ( | TextureWrap | mode | ) |
Sets the wrap parameter for the S coordinate.
GL_TEXTURE_WRAP_S
References oglplus::S.
TextureWrap oglplus::ObjectOps< tag::DirectState, tag::Sampler >::WrapT | ( | void | ) | const |
Gets the wrap parameter for the T coordinate.
GL_TEXTURE_WRAP_T
References oglplus::T.
void oglplus::ObjectOps< tag::DirectState, tag::Sampler >::WrapT | ( | TextureWrap | mode | ) |
Sets the wrap parameter for the T coordinate.
GL_TEXTURE_WRAP_T
References oglplus::T.