| Package | Description |
|---|---|
| org.fujion.canvas.webgl |
| Modifier and Type | Method and Description |
|---|---|
WebGLProgram |
RenderingContextWebGL.createProgram()
Creates and initializes a WebGLProgram instance.
|
WebGLProgram |
WebGLUniformLocation.getProgram() |
| Modifier and Type | Method and Description |
|---|---|
void |
RenderingContextWebGL.attachShader(WebGLProgram program,
WebGLShader shader)
Attaches either a fragment or vertex WebGLShader to a WebGLProgram.
|
void |
RenderingContextWebGL.deleteProgram(WebGLProgram program)
Deletes a given WebGLProgram.
|
void |
RenderingContextWebGL.detachShader(WebGLProgram program,
WebGLShader shader)
Detaches a previously attached WebGLShader from a WebGLProgram.
|
void |
RenderingContextWebGL.getActiveAttrib(WebGLProgram program,
int index,
RenderingContextWebGL.IWebGLInfoCallback callback)
Returns a WebGLActiveInfo object containing size, type, and name of a vertex attribute.
|
void |
RenderingContextWebGL.getActiveUniform(WebGLProgram program,
int index,
RenderingContextWebGL.IWebGLInfoCallback callback)
Returns a WebGLActiveInfo object containing size, type, and name of a uniform attribute.
|
Set<WebGLShader> |
RenderingContextWebGL.getAttachedShaders(WebGLProgram program)
Returns a list of WebGLShader objects attached to a WebGLProgram.
|
void |
RenderingContextWebGL.getAttribLocation(WebGLProgram program,
String name,
IResponseCallback<Integer> callback)
Returns the location of an attribute variable in a given WebGLProgram.
|
void |
RenderingContextWebGL.getProgramInfoLog(WebGLProgram program,
IResponseCallback<String> callback)
Returns the information log for the specified WebGLProgram object.
|
void |
RenderingContextWebGL.getProgramParameter(WebGLProgram program,
ProgramParameterType pname,
IResponseCallback<Object> callback)
Returns information about the given program.
|
void |
RenderingContextWebGL.getUniform(WebGLProgram program,
WebGLUniformLocation location,
IResponseCallback<Object> callback)
Returns the value of a uniform variable at a given location.
|
WebGLUniformLocation |
RenderingContextWebGL.getUniformLocation(WebGLProgram program,
String name)
Returns the location of a specific uniform variable which is part of a given WebGLProgram.
|
void |
RenderingContextWebGL.isProgram(WebGLProgram program,
IResponseCallback<Boolean> callback)
Returns true if the passed WebGLProgram is valid and false otherwise.
|
void |
RenderingContextWebGL.linkProgram(WebGLProgram program)
Links a given WebGLProgram to the attached vertex and fragment shaders.
|
void |
RenderingContextWebGL.useProgram(WebGLProgram program)
Sets the specified WebGLProgram as part of the current rendering state.
|
void |
RenderingContextWebGL.validateProgram(WebGLProgram program)
Checks if the program is successfully linked and if it can be used in the current WebGL
state.
|
| Constructor and Description |
|---|
WebGLActiveInfo(String factory,
WebGLProgram program,
int index,
RenderingContextWebGL.IWebGLInfoCallback callback) |
WebGLUniformLocation(WebGLProgram program,
String name) |
Copyright © 2018 Regenstrief Center for Biomedical Informatics. All rights reserved.