RealSampler

Represents an OpenGL Sampler.

Constructors

this
this()

Creates the OpenGL sampler.

Destructor

~this
~this()
Undocumented in source.

Alias This

sampler

Alias this to sampler.

Members

Functions

bind
void bind(GLuint unit)
void bind(ITexture tex)

Binds the sampler.

get_parameter
float[] get_parameter(GLenum name)

Queries a texture parameter from OpenGL.

remove
void remove()

Deletes the sampler.

set_parameter
void set_parameter(GLenum name, T params)

Sets a sampler parameter.

unbind
void unbind(GLuint unit)
void unbind(ITexture tex)

Unbinds the sampler.

Variables

sampler
GLuint sampler;

The OpenGL sampler name.

Inherited Members

From ISampler

set_parameter
void set_parameter(GLenum name, T params)
Undocumented in source.
get_parameter
float[] get_parameter(GLenum name)
Undocumented in source.
bind
void bind(ITexture tex)
Undocumented in source.
unbind
void unbind(GLuint unit)
Undocumented in source.
unbind
void unbind(ITexture tex)
Undocumented in source.
remove
void remove()
Undocumented in source.

Meta