Class Index | File Index

Classes


Class CAAT.WebGL.TextureProgram


Extends CAAT.WebGL.Program.

Defined in: TextureProgram.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
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 Summary
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
Class Detail
CAAT.WebGL.TextureProgram()
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()

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Jul 01 2013 04:59:20 GMT-0700 (PDT)