GLProgram

OpenGL Program wrapper.

Constructors

this
this(OpenGL gl)

Creates an empty program.

this
this(OpenGL gl, GLShader[] shaders)

Creates a program from a set of compiled shaders.

this
this(OpenGL gl, string[] sourceLines)

Compiles N times the same GLSL source and link to a program.

this
this(OpenGL gl, string wholeSource)

Ditto, except with lines in a single string.

Destructor

~this
~this()

Releases the OpenGL program resource.

Members

Functions

attach
void attach(GLShader[] compiledShaders)

Attaches OpenGL shaders to this program.

attrib
GLAttribute attrib(string name)

Gets an attribute by name.

close
deprecated void close()
Undocumented in source. Be warned that the author may not have intended to support it.
getLinkLog
const(char)[] getLinkLog()

Gets the linking report.

handle
GLuint handle()
link
void link()

Links this OpenGL program.

uniform
GLUniform uniform(string name)

Gets an uniform by name.

unuse
void unuse()

Unuses this program.

use
void use()

Uses this program for following draw calls.

Variables

_gl
OpenGL _gl;
Undocumented in source.

Meta