Uniform

OpenGL uniform variable.

This is a wrapper around a GLuint generated by glGetUniformLocation(program, name).

An object of this type is returned by ShaderProgram.uniform(name).

Constructors

this
this(GLuint id)
Undocumented in source.

Members

Functions

set
void set(T value)

Calls the correct glUniform function, based on the type T.

Properties

location
GLuint location [@property getter]

The location of this Uniform.

Meta