- vertexSource
string vertexSource [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- _matrixLoc
GLint _matrixLoc;
Undocumented in source.
- _posLoc
GLint _posLoc;
Undocumented in source.
- _uvLoc
GLint _uvLoc;
Undocumented in source.
- initVertexShader
void initVertexShader()
Undocumented in source. Be warned that the author may not have intended to support it.
- textureSupport
bool textureSupport [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- uploadMatrix
void uploadMatrix(mat4 m)
Undocumented in source. Be warned that the author may not have intended to support it.
- uploadPositionBuffer
void uploadPositionBuffer(ArrayBuffer buf)
Undocumented in source. Be warned that the author may not have intended to support it.
- uploadUvBuffer
void uploadUvBuffer(ArrayBuffer buf)
Undocumented in source. Be warned that the author may not have intended to support it.
- compileShader
GLuint compileShader(GLenum shaderType, string src)
Undocumented in source. Be warned that the author may not have intended to support it.
- NullId
enum NullId;
Invalid shader program id.
- _vertex
GLuint _vertex;
Undocumented in source.
- _fragment
GLuint _fragment;
Undocumented in source.
- _program
GLuint _program;
Undocumented in source.
- _vao
GLuint _vao;
Undocumented in source.
- _matrix
ShaderMatrix _matrix;
Undocumented in source.
- matrix
ref matrix [@property getter]
Data of translation, rotation and transformation.
- vertexSource
string vertexSource [@property getter]
GLSL source code of vertex shader.
- fragSource
string fragSource [@property getter]
GLSL source code of fragment shader.
- ~this
~this()
- disposed
disposed [@property getter]
Checks if the shader is disposed.
- dispose
void dispose()
Deletes all programs and shaders.
- getUniformLoc
GLint getUniformLoc(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
- getAttribLoc
GLint getAttribLoc(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
- initVertexShader
void initVertexShader()
Undocumented in source.
- initFragShader
void initFragShader()
Undocumented in source.
- textureSupport
bool textureSupport [@property getter]
Checks the shader supports texture.
- use
void use()
- uploadMatrix
void uploadMatrix(mat4 )
- uploadPositionBuffer
void uploadPositionBuffer(ArrayBuffer )
- uploadUvBuffer
void uploadUvBuffer(ArrayBuffer )
- uploadTexture
void uploadTexture(Texture )
- applyMatrix
void applyMatrix()
- drawFan
void drawFan(size_t polyCnt)
Calls glDrawArrays with GL_TRIANGLE_FAN.
- drawStrip
void drawStrip(size_t polyCnt)
Calls glDrawArrays with GL_TRIANGLE_STRIP.
- drawElementsFan
void drawElementsFan(ElementArrayBuffer buf, size_t polyCnt)
Calls glDrawElements with GL_TRIANGLE_FAN.
- drawElementsStrip
void drawElementsStrip(ElementArrayBuffer buf, size_t polyCnt)
Calls glDrawElements with GL_TRIANGLE_STRIP.
A shader that fills the polygon with single color.