Class CAAT.WebGL.TextureProgram
Extends
CAAT.WebGL.Program.
Defined in: TextureProgram.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
Lines GLBuffer
|
|
VertexIndex GLBuffer.
|
|
VertextBuffer Float32 Array
|
|
VertextBuffer GLBuffer
|
|
VertexBuffer Float32 Array
|
|
UVBuffer GLBuffer
|
- Fields borrowed from class CAAT.WebGL.Program:
- gl, shaderProgram
Method Attributes | Method Name and Description |
---|---|
<private> |
__init(gl)
|
drawLines(lines_data, size, r, g, b, a, lineWidth)
|
|
drawPolylines(polyline_data, size, r, g, b, a, lineWidth)
|
|
setAlpha(alpha)
|
|
setTexture(glTexture)
|
|
setUseColor(use, r, g, b, a)
|
|
updateUVBuffer(uvArray)
|
|
updateVertexBuffer(vertexArray)
|
|
- Methods borrowed from class CAAT.WebGL.Program:
- create, getDomShader, getShader, setMatrixUniform
Field Detail
linesBuffer
Lines GLBuffer
prevA
prevAlpha
prevB
prevG
prevR
prevTexture
vertexIndexBuffer
VertexIndex GLBuffer.
vertexPositionArray
VertextBuffer Float32 Array
vertexPositionBuffer
VertextBuffer GLBuffer
vertexUVArray
VertexBuffer Float32 Array
vertexUVBuffer
UVBuffer GLBuffer
Method Detail
<private>
__init(gl)
- Parameters:
- gl
drawLines(lines_data, size, r, g, b, a, lineWidth)
- Parameters:
- lines_data
- {Float32Array} array of number with x,y,z coords for each line point.
- size
- {number} number of lines to draw.
- r
- g
- b
- a
- lineWidth
- {number} drawing line size.
drawPolylines(polyline_data, size, r, g, b, a, lineWidth)
- Parameters:
- polyline_data
- size
- r
- g
- b
- a
- lineWidth
getFragmentShader()
getVertexShader()
initialize()
setAlpha(alpha)
- Parameters:
- alpha
setTexture(glTexture)
- Parameters:
- glTexture
setUseColor(use, r, g, b, a)
- Parameters:
- use
- r
- g
- b
- a
updateUVBuffer(uvArray)
- Parameters:
- uvArray
updateVertexBuffer(vertexArray)
- Parameters:
- vertexArray
useProgram()