Fill3DShader

A shader that fills the polygon with single color.

Constructors

this
this()

Members

Mixins

__anonymous
mixin ThreeDimVertexShader
Undocumented in source.
__anonymous
mixin FillFragShader
Undocumented in source.

Mixed In Members

From mixin ThreeDimVertexShader

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.

From mixin FillFragShader

fragSource
string fragSource [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
_colorLoc
GLint _colorLoc;
Undocumented in source.
initFragShader
void initFragShader()
Undocumented in source. Be warned that the author may not have intended to support it.
color
vec4 color [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From Shader

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()

Sets the shader binded.

uploadMatrix
void uploadMatrix(mat4 )

Uploads matrix.

uploadPositionBuffer
void uploadPositionBuffer(ArrayBuffer )

Uploads position buffer.

uploadUvBuffer
void uploadUvBuffer(ArrayBuffer )

Uploads uv buffer.

uploadTexture
void uploadTexture(Texture )

Uploads texture.

applyMatrix
void applyMatrix()

Applies the matrix.

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.

Meta