class GLSLShaderProgramRetained extends ShaderProgramRetained
ShaderProgramRetained.AttrNameInfo, ShaderProgramRetained.ShaderProgramDataresourceLock, shaderAttrNames, shaderProgramData, shaders, vertexAttrNameschangedFrequent, compChanged, duplicateOnCloneTree, mirror, refCnt, refCount, usersDONT_MERGE, inBackgroundGroup, inSetLive, MERGE, MERGE_DONE, mergeFlag, onUpdateList, sourcelistIdx| Constructor and Description |
|---|
GLSLShaderProgramRetained()
Constructs a GLSL shader program node component.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) ShaderError |
bindVertexAttrName(Context ctx,
ShaderProgramId shaderProgramId,
java.lang.String attrName,
int attrIndex)
Method to bind a vertex attribute name to the specified index.
|
(package private) ShaderError |
compileShader(Context ctx,
ShaderId shaderId,
java.lang.String source)
Method to compile the native shader.
|
(package private) void |
createMirrorObject() |
(package private) ShaderError |
createShader(Context ctx,
ShaderRetained shader,
ShaderId[] shaderIdArr)
Method to create the native shader.
|
(package private) ShaderError |
createShaderProgram(Context ctx,
ShaderProgramId[] shaderProgramIdArr)
Method to create the native shader program.
|
(package private) ShaderError |
destroyShader(Context ctx,
ShaderId shaderId)
Method to destroy the native shader.
|
(package private) ShaderError |
destroyShaderProgram(Context ctx,
ShaderProgramId shaderProgramId)
Method to destroy the native shader program.
|
(package private) ShaderError |
disableShaderProgram(Context ctx)
Method to disable the native shader program.
|
(package private) ShaderError |
enableShaderProgram(Context ctx,
ShaderProgramId shaderProgramId)
Method to enable the native shader program.
|
(package private) boolean |
isSupported(Canvas3D cv)
Method to return a flag indicating whether this
ShaderProgram is supported on the specified Canvas.
|
(package private) ShaderError |
linkShaderProgram(Context ctx,
ShaderProgramId shaderProgramId,
ShaderId[] shaderIds)
Method to link the native shader program.
|
(package private) void |
lookupShaderAttrNames(Context ctx,
ShaderProgramId shaderProgramId,
java.lang.String[] attrNames,
ShaderProgramRetained.AttrNameInfo[] attrNameInfoArr)
Method to lookup a list of (uniform) shader attribute names and return
information about the attributes.
|
(package private) void |
lookupVertexAttrNames(Context ctx,
ShaderProgramId shaderProgramId,
java.lang.String[] attrNames,
boolean[] errArr) |
(package private) ShaderError |
setUniform1f(Context ctx,
ShaderProgramId shaderProgramId,
ShaderAttrLoc uniformLocation,
float value) |
(package private) ShaderError |
setUniform1fArray(Context ctx,
ShaderProgramId shaderProgramId,
ShaderAttrLoc uniformLocation,
int numElements,
float[] value) |
(package private) ShaderError |
setUniform1i(Context ctx,
ShaderProgramId shaderProgramId,
ShaderAttrLoc uniformLocation,
int value) |
(package private) ShaderError |
setUniform1iArray(Context ctx,
ShaderProgramId shaderProgramId,
ShaderAttrLoc uniformLocation,
int numElements,
int[] value) |
(package private) ShaderError |
setUniform2f(Context ctx,
ShaderProgramId shaderProgramId,
ShaderAttrLoc uniformLocation,
float[] value) |
(package private) ShaderError |
setUniform2fArray(Context ctx,
ShaderProgramId shaderProgramId,
ShaderAttrLoc uniformLocation,
int numElements,
float[] value) |
(package private) ShaderError |
setUniform2i(Context ctx,
ShaderProgramId shaderProgramId,
ShaderAttrLoc uniformLocation,
int[] value) |
(package private) ShaderError |
setUniform2iArray(Context ctx,
ShaderProgramId shaderProgramId,
ShaderAttrLoc uniformLocation,
int numElements,
int[] value) |
(package private) ShaderError |
setUniform3f(Context ctx,
ShaderProgramId shaderProgramId,
ShaderAttrLoc uniformLocation,
float[] value) |
(package private) ShaderError |
setUniform3fArray(Context ctx,
ShaderProgramId shaderProgramId,
ShaderAttrLoc uniformLocation,
int numElements,
float[] value) |
(package private) ShaderError |
setUniform3i(Context ctx,
ShaderProgramId shaderProgramId,
ShaderAttrLoc uniformLocation,
int[] value) |
(package private) ShaderError |
setUniform3iArray(Context ctx,
ShaderProgramId shaderProgramId,
ShaderAttrLoc uniformLocation,
int numElements,
int[] value) |
(package private) ShaderError |
setUniform4f(Context ctx,
ShaderProgramId shaderProgramId,
ShaderAttrLoc uniformLocation,
float[] value) |
(package private) ShaderError |
setUniform4fArray(Context ctx,
ShaderProgramId shaderProgramId,
ShaderAttrLoc uniformLocation,
int numElements,
float[] value) |
(package private) ShaderError |
setUniform4i(Context ctx,
ShaderProgramId shaderProgramId,
ShaderAttrLoc uniformLocation,
int[] value) |
(package private) ShaderError |
setUniform4iArray(Context ctx,
ShaderProgramId shaderProgramId,
ShaderAttrLoc uniformLocation,
int numElements,
int[] value) |
(package private) ShaderError |
setUniformMatrix3f(Context ctx,
ShaderProgramId shaderProgramId,
ShaderAttrLoc uniformLocation,
float[] value) |
(package private) ShaderError |
setUniformMatrix3fArray(Context ctx,
ShaderProgramId shaderProgramId,
ShaderAttrLoc uniformLocation,
int numElements,
float[] value) |
(package private) ShaderError |
setUniformMatrix4f(Context ctx,
ShaderProgramId shaderProgramId,
ShaderAttrLoc uniformLocation,
float[] value) |
(package private) ShaderError |
setUniformMatrix4fArray(Context ctx,
ShaderProgramId shaderProgramId,
ShaderAttrLoc uniformLocation,
int numElements,
float[] value) |
clearLive, destroyShader, destroyShaderProgram, getShaderAttrNames, getShaders, getVertexAttrNames, initMirrorObject, notifyErrorListeners, setLive, setShaderAttributes, setShaderAttrNames, setShaders, setUniformAttrArray, setUniformAttrValue, setVertexAttrNames, updateMirrorObject, updateNativeaddAMirrorUser, addUser, clone, copyMirrorUsers, decRefCnt, doSetLive, getDuplicateOnCloneTree, getInImmCtx, incRefCnt, notifyUsers, removeAMirrorUser, removeMirrorUsers, removeUser, set, setDuplicateOnCloneTree, setFrequencyChangeMask, setInImmCtxclearLive, clearLive, compile, doSetLive, doSetLive, getSource, getVirtualUniverse, handleFrequencyChange, isInSetLive, isStatic, markAsLive, merge, mergeTransform, setCompiled, setLive, setLive, setSource, traversegetIdxUsed, incIdxUsedGLSLShaderProgramRetained()
void createMirrorObject()
createMirrorObject in class NodeComponentRetainedShaderError setUniform1i(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int value)
setUniform1i in class ShaderProgramRetainedShaderError setUniform1f(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, float value)
setUniform1f in class ShaderProgramRetainedShaderError setUniform2i(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int[] value)
setUniform2i in class ShaderProgramRetainedShaderError setUniform2f(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, float[] value)
setUniform2f in class ShaderProgramRetainedShaderError setUniform3i(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int[] value)
setUniform3i in class ShaderProgramRetainedShaderError setUniform3f(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, float[] value)
setUniform3f in class ShaderProgramRetainedShaderError setUniform4i(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int[] value)
setUniform4i in class ShaderProgramRetainedShaderError setUniform4f(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, float[] value)
setUniform4f in class ShaderProgramRetainedShaderError setUniformMatrix3f(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, float[] value)
setUniformMatrix3f in class ShaderProgramRetainedShaderError setUniformMatrix4f(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, float[] value)
setUniformMatrix4f in class ShaderProgramRetainedShaderError setUniform1iArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, int[] value)
setUniform1iArray in class ShaderProgramRetainedShaderError setUniform1fArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, float[] value)
setUniform1fArray in class ShaderProgramRetainedShaderError setUniform2iArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, int[] value)
setUniform2iArray in class ShaderProgramRetainedShaderError setUniform2fArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, float[] value)
setUniform2fArray in class ShaderProgramRetainedShaderError setUniform3iArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, int[] value)
setUniform3iArray in class ShaderProgramRetainedShaderError setUniform3fArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, float[] value)
setUniform3fArray in class ShaderProgramRetainedShaderError setUniform4iArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, int[] value)
setUniform4iArray in class ShaderProgramRetainedShaderError setUniform4fArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, float[] value)
setUniform4fArray in class ShaderProgramRetainedShaderError setUniformMatrix3fArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, float[] value)
setUniformMatrix3fArray in class ShaderProgramRetainedShaderError setUniformMatrix4fArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, float[] value)
setUniformMatrix4fArray in class ShaderProgramRetainedboolean isSupported(Canvas3D cv)
isSupported in class ShaderProgramRetainedShaderError createShader(Context ctx, ShaderRetained shader, ShaderId[] shaderIdArr)
createShader in class ShaderProgramRetainedShaderError destroyShader(Context ctx, ShaderId shaderId)
destroyShader in class ShaderProgramRetainedShaderError compileShader(Context ctx, ShaderId shaderId, java.lang.String source)
compileShader in class ShaderProgramRetainedShaderError createShaderProgram(Context ctx, ShaderProgramId[] shaderProgramIdArr)
createShaderProgram in class ShaderProgramRetainedShaderError destroyShaderProgram(Context ctx, ShaderProgramId shaderProgramId)
destroyShaderProgram in class ShaderProgramRetainedShaderError linkShaderProgram(Context ctx, ShaderProgramId shaderProgramId, ShaderId[] shaderIds)
linkShaderProgram in class ShaderProgramRetainedShaderError bindVertexAttrName(Context ctx, ShaderProgramId shaderProgramId, java.lang.String attrName, int attrIndex)
ShaderProgramRetainedbindVertexAttrName in class ShaderProgramRetainedvoid lookupVertexAttrNames(Context ctx, ShaderProgramId shaderProgramId, java.lang.String[] attrNames, boolean[] errArr)
lookupVertexAttrNames in class ShaderProgramRetainedvoid lookupShaderAttrNames(Context ctx, ShaderProgramId shaderProgramId, java.lang.String[] attrNames, ShaderProgramRetained.AttrNameInfo[] attrNameInfoArr)
ShaderProgramRetainedlookupShaderAttrNames in class ShaderProgramRetainedShaderError enableShaderProgram(Context ctx, ShaderProgramId shaderProgramId)
enableShaderProgram in class ShaderProgramRetainedShaderError disableShaderProgram(Context ctx)
disableShaderProgram in class ShaderProgramRetainedCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.