GLShaderProgram

Constructors

this
this(GLShader[] shs)

create()

Members

Functions

attachShaders
void attachShaders()

makes shaders if are not compiled and attach their

attribLocations
uint[string] attribLocations()
bindAttribLocations
void bindAttribLocations()

uses result of attribLocations() call, affect after link() call

bindFragDataLocations
void bindFragDataLocations()

uses result of fragDataLocations() call, affect after link() call

check
void check()

check link status, throw exception if false

create
void create()

create program, attach shaders, bind attrib locations, link program

detachShaders
void detachShaders()
fragDataLocations
uint[string] fragDataLocations()
id
uint id()
link
void link()

link program and check status

use
void use()

Properties

thisInUse
bool thisInUse [@property getter]

check this is current shader program

thisInUse
bool thisInUse [@property setter]

glUseProgram, set this is current shader program or set zero (if u==false)

Variables

shaders
GLShader[] shaders;

Meta