EmulatedSampler

This emulates an OpenGL Sampler on platforms where no glGenSamplers is available (like OSX). This only works with Texture1D, Texture2D and Texture3D so far.

Members

Functions

bind
void bind(GLuint unit)

Stub, throws always ShaderException.

bind
void bind(ITexture tex)

Applies the parameters to the passed texture, must be one of Texture1D, Texture2D or Texture3D, or throws ShaderException

get_parameter
float[] get_parameter(GLenum name)

Returns the stored parameter or float.nan if not internally stored.

remove
void remove()

Stub.

set_parameter
void set_parameter(GLenum name, T params)

Sets a sampler parameter (and stores it internally).

unbind
void unbind(GLuint unit)

Stub.

unbind
void unbind(ITexture tex)

Stub.

Structs

Parameter
struct Parameter
Undocumented in source.

Variables

parameters
Parameter[GLenum] parameters;
Undocumented in source.

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