GLProgram

OpenGL Program wrapper.

Constructors

this
this()

Creates an empty program.

this
this(GLShader[] shaders)

Creates a program from a set of compiled shaders.

this
this(string[] sourceLines)

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

this
this(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.

getLinkLog
const(char)[] getLinkLog()

Gets the linking report.

handle
GLuint handle()
link
void link()

Links this OpenGL program.

logger
void logger(Logger l)

Sets a logger for the program. That allows additional output besides error reporting.

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.

Meta