Class Index | File Index

Classes


Class ProgramUniform

Represents an uniform variable in a shader program.
Defined in: benchgl.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
ProgramUniform(program, name, type, size, location)
Creates a new ProgramUniform.
Method Summary
Method Attributes Method Name and Description
 
func(v)
 
Get the value of this ProgramUniform.
 
Sets the value of this ProgramUniform.
Class Detail
ProgramUniform(program, name, type, size, location)
Creates a new ProgramUniform.
Parameters:
{Program} program
The program in wich the uniform lives.
{String} name
The name of the uniform.
{Number} type
The WebGL type of the uniform.
{Number} size
The size of the attributes in bytes.
{Number} location
The index location in the shader.
Method Detail
func(v)
Parameters:
v

getValue()
Get the value of this ProgramUniform.

setValue(v)
Sets the value of this ProgramUniform.
Parameters:
{Object} v
The value to set.

Documentation generated by JsDoc Toolkit 2.4.0 on Thu May 19 2011 00:47:49 GMT+0200 (CEST)