CommonGLShaderProgram

Constructors

this
this(GLShader[] shs)

Members

Functions

getAttribLocation
int getAttribLocation(string name)
getAttribLocations
int[] getAttribLocations(string[] names)
getUniformLocation
int getUniformLocation(string name)
setUniform
void setUniform(int loc, T[] vals)
setUniform
void setUniform(string name, T[] vals)

Inherited Members

From GLShaderProgram

__anonymous
mixin DES
Undocumented in source.
__anonymous
mixin ClassLogger
Undocumented in source.
_id
uint _id;
Undocumented in source.
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)

shaders
GLShader[] shaders;
id
uint id()
use
void use()
create
void create()

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

attachShaders
void attachShaders()

makes shaders if are not compiled and attach their

detachShaders
void detachShaders()
check
void check()

check link status, throw exception if false

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

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

fragDataLocations
uint[string] fragDataLocations()
bindFragDataLocations
void bindFragDataLocations()

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

link
void link()

link program and check status

selfConstruct
void selfConstruct()
Undocumented in source. Be warned that the author may not have intended to support it.
preChildsDestroy
void preChildsDestroy()
Undocumented in source. Be warned that the author may not have intended to support it.
selfDestroy
void selfDestroy()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta