Class CAAT.WebGL.ColorProgram
Extends
CAAT.WebGL.Program.
Defined in: ColorProgram.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Field Attributes | Field Name and Description |
|---|---|
|
int32 Array for color Buffer
|
|
|
Float32 Array for vertex buffer.
|
|
|
GLBuffer for vertex buffer.
|
- Fields borrowed from class CAAT.WebGL.Program:
- gl, shaderProgram
| Method Attributes | Method Name and Description |
|---|---|
| <private> |
__init(gl)
|
|
setColor(colorArray)
|
- Methods borrowed from class CAAT.WebGL.Program:
- create, getDomShader, getShader, setAlpha, setMatrixUniform, useProgram
Field Detail
colorBuffer
int32 Array for color Buffer
vertexPositionArray
Float32 Array for vertex buffer.
vertexPositionBuffer
GLBuffer for vertex buffer.
Method Detail
<private>
__init(gl)
- Parameters:
- gl
getFragmentShader()
getVertexShader()
initialize()
setColor(colorArray)
- Parameters:
- colorArray