GL20Program

An OpenGL 2.0 implementation of {@link Program}.

@see Program

Members

Functions

attachShader
void attachShader(Shader shader)
Undocumented in source. Be warned that the author may not have intended to support it.
bindSampler
void bindSampler(uint unit)
Undocumented in source. Be warned that the author may not have intended to support it.
create
void create()
Undocumented in source. Be warned that the author may not have intended to support it.
destroy
void destroy()
Undocumented in source. Be warned that the author may not have intended to support it.
detachShader
void detachShader(Shader shader)
Undocumented in source. Be warned that the author may not have intended to support it.
getGLVersion
gbaid.render.gl.GLVersion getGLVersion()
Undocumented in source. Be warned that the author may not have intended to support it.
getShaders
Shader[] getShaders()
Undocumented in source. Be warned that the author may not have intended to support it.
getUniformNames
string[] getUniformNames()
Undocumented in source. Be warned that the author may not have intended to support it.
link
void link()
Undocumented in source. Be warned that the author may not have intended to support it.
setUniform
void setUniform(string name, bool b)
Undocumented in source. Be warned that the author may not have intended to support it.
setUniform
void setUniform(string name, int i)
Undocumented in source. Be warned that the author may not have intended to support it.
setUniform
void setUniform(string name, float f)
Undocumented in source. Be warned that the author may not have intended to support it.
setUniform
void setUniform(string name, float[] fs)
Undocumented in source. Be warned that the author may not have intended to support it.
setUniform
void setUniform(string name, float x, float y)
Undocumented in source. Be warned that the author may not have intended to support it.
setUniform
void setUniform(string name, float x, float y, float z)
Undocumented in source. Be warned that the author may not have intended to support it.
setUniform
void setUniform(string name, float x, float y, float z, float w)
Undocumented in source. Be warned that the author may not have intended to support it.
setUniform
void setUniform(string name, float[4] m)
Undocumented in source. Be warned that the author may not have intended to support it.
setUniform
void setUniform(string name, float[9] m)
Undocumented in source. Be warned that the author may not have intended to support it.
setUniform
void setUniform(string name, float[16] m)
Undocumented in source. Be warned that the author may not have intended to support it.
use
void use()
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From Program

id
uint id;
Undocumented in source.
destroy
void destroy()
Undocumented in source. Be warned that the author may not have intended to support it.
attachShader
void attachShader(Shader shader)

Attaches a shader to the program.

detachShader
void detachShader(Shader shader)

Detaches a shader from the shader.

link
void link()

Links the shaders together in the program. This makes it usable.

use
void use()

Binds this program to the OpenGL context.

bindSampler
void bindSampler(uint unit)

Binds the sampler to the texture unit. The binding is done according to the texture layout, which must be set in the program for the textures that will be used before any binding can be done.

setUniform
void setUniform(string name, bool b)

Sets a uniform boolean in the shader to the desired value.

setUniform
void setUniform(string name, int i)

Sets a uniform integer in the shader to the desired value.

setUniform
void setUniform(string name, float f)

Sets a uniform float in the shader to the desired value.

setUniform
void setUniform(string name, float[] fs)

Sets a uniform float array in the shader to the desired value.

setUniform
void setUniform(string name, float x, float y)

Sets a uniform {@link com.flowpowered.math.vector.Vector2f} in the shader to the desired value.

setUniform
void setUniform(string name, float x, float y, float z)

Sets a uniform {@link com.flowpowered.math.vector.Vector3f} in the shader to the desired value.

setUniform
void setUniform(string name, float x, float y, float z, float w)

Sets a uniform {@link com.flowpowered.math.vector.Vector4f} in the shader to the desired value.

setUniform
void setUniform(string name, float[4] m)

Sets a uniform {@link com.flowpowered.math.matrix.Matrix4f} in the shader to the desired value.

setUniform
void setUniform(string name, float[9] m)

Sets a uniform {@link com.flowpowered.math.matrix.Matrix4f} in the shader to the desired value.

setUniform
void setUniform(string name, float[16] m)

Sets a uniform {@link com.flowpowered.math.matrix.Matrix4f} in the shader to the desired value.

getShaders
Shader[] getShaders()

Returns the shaders that have been attached to this program.

getUniformNames
string[] getUniformNames()

Returns an set containing all of the uniform names for this program.

getID
uint getID()

Gets the ID for this program as assigned by OpenGL.

Meta