Package | Description |
---|---|
thothbot.parallax.core.client.gl2 |
Here are located all WebGL rendering context related code.
|
thothbot.parallax.core.client.shaders |
Here are all shaders and shader's related code.
|
Modifier and Type | Method and Description |
---|---|
WebGLProgram |
WebGLRenderingContext.createProgram()
Create a WebGLProgram object and initialize it with a program object name
as if by calling glCreateProgram.
|
Modifier and Type | Method and Description |
---|---|
void |
WebGLRenderingContext.attachShader(WebGLProgram program,
WebGLShader shader)
Attach a shader object to a program object.
|
void |
WebGLRenderingContext.bindAttribLocation(WebGLProgram program,
int index,
java.lang.String name)
Associate a generic vertex attribute index with a named attribute variable.
|
void |
WebGLRenderingContext.deleteProgram(WebGLProgram program)
Delete the program object contained in the passed WebGLProgram as if by
calling glDeleteProgram.
|
void |
WebGLRenderingContext.detachShader(WebGLProgram program,
WebGLShader shader)
Detach a shader object from a program object.
|
WebGLActiveInfo |
WebGLRenderingContext.getActiveAttrib(WebGLProgram program,
int index)
Returns information about the size, type and name of the vertex attribute
at the passed index of the passed program object.
|
WebGLActiveInfo |
WebGLRenderingContext.getActiveUniform(WebGLProgram program,
int index)
Returns information about the size, type and name of the uniform at the
passed index of the passed program object.
|
WebGLShader[] |
WebGLRenderingContext.getAttachedShaders(WebGLProgram program)
Return the list of
WebGLShader s attached to the passed WebGLProgram . |
int |
WebGLRenderingContext.getAttribLocation(WebGLProgram program,
java.lang.String name)
Returns the location of an attribute variable.
|
java.lang.String |
WebGLRenderingContext.getProgramInfoLog(WebGLProgram program)
Returns the information log for a program object.
|
boolean |
WebGLRenderingContext.getProgramParameterb(WebGLProgram program,
ProgramParameter pname)
Return the value for the passed pname given the passed program.
|
int |
WebGLRenderingContext.getProgramParameteri(WebGLProgram program,
ProgramParameter pname) |
<T extends TypeArray> |
WebGLRenderingContext.getUniform(WebGLProgram program,
WebGLUniformLocation location)
Return the uniform value at the passed location in the passed program.
|
boolean |
WebGLRenderingContext.getUniformb(WebGLProgram program,
WebGLUniformLocation location)
Return the uniform value at the passed location in the passed program.
|
double |
WebGLRenderingContext.getUniformf(WebGLProgram program,
WebGLUniformLocation location)
Return the uniform value at the passed location in the passed program.
|
int |
WebGLRenderingContext.getUniformi(WebGLProgram program,
WebGLUniformLocation location)
Return the uniform value at the passed location in the passed program.
|
WebGLUniformLocation |
WebGLRenderingContext.getUniformLocation(WebGLProgram program,
java.lang.String name)
Return the location of a uniform variable.
|
boolean |
WebGLRenderingContext.isProgram(WebGLProgram program)
Return true if the passed RendererObject is a WebGLProgram and false
otherwise.
|
void |
WebGLRenderingContext.linkProgram(WebGLProgram program)
Link a program object.
|
void |
WebGLRenderingContext.useProgram(WebGLProgram program)
Install a program object as part of current rendering state.
|
void |
WebGLRenderingContext.validateProgram(WebGLProgram program)
Validate a program object.
|
Modifier and Type | Method and Description |
---|---|
WebGLProgram |
Shader.getProgram()
Gets the shader program.
|