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()
Undocumented in source.

Members

Functions

attach
void attach(GLShader[] compiledShaders)

Attaches OpenGL shaders to this program.

attrib
GLAttribute attrib(string name)

Gets an attribute by name.

close
void close()

Releases the OpenGL program resource.

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