Program

Represents and handles a Program Opengl Object. A Program is a group of Opengl Shaders which will be linked together. A Program is a program to be executed by the GPU to each of the Vertices of a model.

Constructors

this
this()

Creates a new empty program

this
this(Shader[] shaders)

Creates a program with the specified shaders already attached

Destructor

~this
~this()
Undocumented in source.

Public Imports

std.conv
public import std.conv;

Members

Functions

attach
void attach(Shader shader)

Attaches the shader to this program

getUniform
void getUniform(int location, strToType!typeString* output)
Undocumented in source. Be warned that the author may not have intended to support it.
getUniformLocation
int getUniformLocation(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
link
void link()

Links the currently attached shaders

setUniform
void setUniform(int location, void[] data)

Sets a integer uniform variable inside the program

use
void use()

Binds the program to the current opengl context so that it is used to process new render commands

Templates

strToType
template strToType(string typeString)
Undocumented in source.

Meta