#include
<oglplus/sampler.hpp>
template <> class ObjCommonOps<tag::Sampler> : public SamplerName { public: typedef TextureUnitSelector Target;static SamplerName Binding(TextureUnitSelector target);
static void Bind(TextureUnitSelector target, SamplerName sampler);
void Bind(TextureUnitSelector target) const;
};
Sampler bind target. |
|
Returns the sampler currently bound to the specified |
|
Binds the specified |
|
Binds |
template <> class ObjectOps<tag::DirectState, tag::Sampler> : public ObjZeroOps<tag::DirectState, tag::Sampler>{ public: Vector<GLfloat, 4> BorderColor(TypeTag<GLfloat>) const;
Vector<GLuint, 4> BorderColor(TypeTag<GLuint>) const; Vector<GLint, 4> BorderColor(TypeTag<GLint>) const; void BorderColor(Vector<GLfloat, 4> color);
void BorderColor(Vector<GLuint, 4> color); void BorderColor(Vector<GLint, 4> color); TextureCompareMode CompareMode(void) const;
void CompareMode(TextureCompareMode mode);
CompareFunction CompareFunc(void) const;
void CompareFunc(CompareFunction func);
TextureMinFilter MinFilter(void) const;
void MinFilter(TextureMinFilter filter);
TextureMagFilter MagFilter(void) const;
void MagFilter(TextureMagFilter filter);
void Filter(TextureFilter filter) const;
![]()
Indirectly inherits from ObjCommonOps<tag::Sampler>. |
|
Returns the currently set border color of this sampler object. See
|
|
Sets the border color for this sampler object. See |
|
Returns the currently set texture compare mode of this sampler object.
See |
|
Sets the texture compare mode for this sampler object. See |
|
Returns the currently set texture compare function of this sampler
object. See |
|
Sets the texture compare mode for this sampler object. See |
|
Returns the currently set texture minnification filter of this sampler
object. See |
|
Sets the texture minnification filter for this sampler object. See
|
|
Returns the currently set texture magnification filter of this sampler
object. See |
|
Sets the texture magnification filter for this sampler object. See
|
|
Sets both the minification and the magnification filter for this sampler
object. See |
TextureWrap Wrap(TextureWrapCoord coord) const;void Wrap(TextureWrapCoord coord, TextureWrap mode)
TextureWrap WrapS(void) const;
TextureWrap WrapT(void) const; TextureWrap WrapR(void) const; void WrapS(TextureWrap mode);
void WrapT(TextureWrap mode); void WrapR(TextureWrap mode); GLfloat LODBias(void) const;
void LODBias(GLfloat value);
GLfloat MinLOD(void) const;
void MinLOD(GLfloat value);
GLfloat MaxLOD(void) const;
void MaxLOD(GLfloat value);
#if GL_ARB_seamless_cubemap_per_texture Boolean Seamless(void) const;
void Seamless(Boolean enable);
#endif };
Returns the currently set texture wrap mode on the specified |
|
Sets the texture wrap mode on the specified |
|
Returns the currently set texture wrap mode on the |
|
Sets the texture wrap mode on the |
|
Returns the currently set texture level-of-detail bias value of this
sampler object. See |
|
Sets the texture level-of-detail bias value for this sampler object.
See |
|
Returns the currently set minimum texture level-of-detail value of
this sampler object. See |
|
Sets the minimal texture level-of-detail value for this sampler object.
See |
|
Returns the currently set maximum texture level-of-detail value of
this sampler object. See |
|
Sets the maximal texture level-of-detail value for this sampler object.
See |
|
Returns the value of the seamless-cube map setting of this sampler
object. See |
|
Sets the seamless cubemap setting for this sampler object. See |
typedef ObjectOps<tag::DirectState, tag::Sampler> SamplerOps; typedef Object<SamplerOps> Sampler; typedef ObjectZero<ObjZeroOps<tag::DirectState, tag::Sampler>> NoSampler;
struct SamplerOpsAndSlot { }; SamplerOpsAndSlot operator | ( SamplerOps& sam, GLuint slot ); SamplerOps& operator << ( SamplerOps& sam, TextureUnitSelector tus );SamplerOps& operator << ( SamplerOps& sam, TextureFilter filter );
SamplerOps& operator << ( SamplerOps& sam, TextureMinFilter filter );
SamplerOps& operator << ( SamplerOps& sam, TextureMagFilter filter );
SamplerOps& operator << ( SamplerOps& sam, TextureCompareMode mode );
SamplerOps& operator << ( SamplerOps& sam, CompareFunction func );
{ sam.CompareFunc(func); return sam; } SamplerOps& operator << ( SamplerOps& sam, TextureWrap wrap );
SamplerOps& operator << ( SamplerOpsAndSlot sas, TextureWrap wrap );
template <typename T> SamplerOps& operator << ( SamplerOps& sam, const Vector<T, 4>& col );
![]()