Class Index | File Index

Classes


Class ProgramAttribute

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

Class Summary
Constructor Attributes Constructor Name and Description
 
ProgramAttribute(program, name, type, size, location)
Creates a new ProgramAttribute.
Method Summary
Method Attributes Method Name and Description
 
Gets the index of this ProgramAttribute.
 
Sets the index of this ProgramAttribute.
Class Detail
ProgramAttribute(program, name, type, size, location)
Creates a new ProgramAttribute.
Parameters:
{Program} program
The program in wich the attribute lives.
{String} name
The name of the attribute.
{Number} type
The WebGL type of the attribute.
{Number} size
The size of the attributes in bytes.
{Number} location
The index location in the shader.
Method Detail
{Number} getIndex()
Gets the index of this ProgramAttribute.
Returns:
{Number} The current index of this ProgramAttribute in the program

setIndex(n)
Sets the index of this ProgramAttribute.
Parameters:
{Number} n
The index to set.

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