GL20Shader

An OpenGL 2.0 implementation of {@link Shader}.

@see Shader

Members

Functions

compile
void compile()
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.
getAttributeLayouts
uint[string] getAttributeLayouts()
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.
getTextureLayouts
string[uint] getTextureLayouts()
Undocumented in source. Be warned that the author may not have intended to support it.
getType
ShaderType getType()
Undocumented in source. Be warned that the author may not have intended to support it.
setAttributeLayout
void setAttributeLayout(string attribute, uint layout)
Undocumented in source. Be warned that the author may not have intended to support it.
setSource
void setSource(ShaderSource source)
Undocumented in source. Be warned that the author may not have intended to support it.
setTextureLayout
void setTextureLayout(uint unit, string sampler)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From Shader

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

Sets the shader source.

compile
void compile()

Compiles the shader.

getType
ShaderType getType()

Gets the shader type.

getAttributeLayouts
uint[string] getAttributeLayouts()

Returns the attribute layouts parsed from the tokens in the shader source.

getTextureLayouts
string[uint] getTextureLayouts()

Returns the texture layouts parsed from the tokens in the shader source.

setAttributeLayout
void setAttributeLayout(string attribute, uint layout)

Sets an attribute layout.

setTextureLayout
void setTextureLayout(uint unit, string sampler)

Sets a texture layout.

getID
uint getID()

Gets the ID for this shader as assigned by OpenGL.

Meta