CommonGLShaderProgram

Constructors

this
this(GLShader[] shs)

Members

Functions

getAttribLocation
int getAttribLocation(string name)
getAttribLocations
int[] getAttribLocations(string[] names...)
getUniformLocation
int getUniformLocation(string name)
setTexture
void setTexture(string name, GLTexture tex)

set uniform and bind texture

setTexture
void setTexture(int loc, GLTexture tex)

set uniform and bind texture

setUniform
void setUniform(int loc, in T[] vals...)
setUniform
void setUniform(string name, in T[] vals...)

Inherited Members

From GLShaderProgram

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

Meta