|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.j3d.IndexedObject
javax.media.j3d.SceneGraphObjectRetained
javax.media.j3d.NodeComponentRetained
javax.media.j3d.ShaderProgramRetained
javax.media.j3d.GLSLShaderProgramRetained
class GLSLShaderProgramRetained
The GLSLShaderProgram object is a concrete implementation of a ShaderProgram node component for the OpenGL GLSL shading language.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.media.j3d.ShaderProgramRetained |
---|
ShaderProgramRetained.AttrNameInfo, ShaderProgramRetained.ShaderProgramData |
Field Summary |
---|
Fields inherited from class javax.media.j3d.ShaderProgramRetained |
---|
resourceLock, shaderAttrNames, shaderProgramData, shaders, vertexAttrNames |
Fields inherited from class javax.media.j3d.NodeComponentRetained |
---|
changedFrequent, compChanged, duplicateOnCloneTree, mirror, refCnt, refCount, users |
Fields inherited from class javax.media.j3d.SceneGraphObjectRetained |
---|
DONT_MERGE, inBackgroundGroup, inSetLive, MERGE, MERGE_DONE, mergeFlag, onUpdateList, source |
Fields inherited from class javax.media.j3d.IndexedObject |
---|
listIdx |
Constructor Summary | |
---|---|
GLSLShaderProgramRetained()
Constructs a GLSL shader program node component. |
Method Summary | |
---|---|
(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)
|
Methods inherited from class javax.media.j3d.ShaderProgramRetained |
---|
clearLive, destroyShader, destroyShaderProgram, getShaderAttrNames, getShaders, getVertexAttrNames, initMirrorObject, notifyErrorListeners, setLive, setShaderAttributes, setShaderAttrNames, setShaders, setUniformAttrArray, setUniformAttrValue, setVertexAttrNames, updateMirrorObject, updateNative |
Methods inherited from class javax.media.j3d.NodeComponentRetained |
---|
addAMirrorUser, addUser, clone, copyMirrorUsers, decRefCnt, doSetLive, getDuplicateOnCloneTree, getInImmCtx, incRefCnt, notifyUsers, removeAMirrorUser, removeMirrorUsers, removeUser, set, setDuplicateOnCloneTree, setFrequencyChangeMask, setInImmCtx |
Methods inherited from class javax.media.j3d.SceneGraphObjectRetained |
---|
clearLive, clearLive, compile, doSetLive, doSetLive, getSource, getVirtualUniverse, handleFrequencyChange, isInSetLive, isStatic, markAsLive, merge, mergeTransform, setCompiled, setLive, setLive, setSource, traverse |
Methods inherited from class javax.media.j3d.IndexedObject |
---|
getIdxUsed, incIdxUsed |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
GLSLShaderProgramRetained()
Method Detail |
---|
void createMirrorObject()
createMirrorObject
in class NodeComponentRetained
ShaderError setUniform1i(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int value)
setUniform1i
in class ShaderProgramRetained
ShaderError setUniform1f(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, float value)
setUniform1f
in class ShaderProgramRetained
ShaderError setUniform2i(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int[] value)
setUniform2i
in class ShaderProgramRetained
ShaderError setUniform2f(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, float[] value)
setUniform2f
in class ShaderProgramRetained
ShaderError setUniform3i(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int[] value)
setUniform3i
in class ShaderProgramRetained
ShaderError setUniform3f(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, float[] value)
setUniform3f
in class ShaderProgramRetained
ShaderError setUniform4i(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int[] value)
setUniform4i
in class ShaderProgramRetained
ShaderError setUniform4f(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, float[] value)
setUniform4f
in class ShaderProgramRetained
ShaderError setUniformMatrix3f(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, float[] value)
setUniformMatrix3f
in class ShaderProgramRetained
ShaderError setUniformMatrix4f(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, float[] value)
setUniformMatrix4f
in class ShaderProgramRetained
ShaderError setUniform1iArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, int[] value)
setUniform1iArray
in class ShaderProgramRetained
ShaderError setUniform1fArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, float[] value)
setUniform1fArray
in class ShaderProgramRetained
ShaderError setUniform2iArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, int[] value)
setUniform2iArray
in class ShaderProgramRetained
ShaderError setUniform2fArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, float[] value)
setUniform2fArray
in class ShaderProgramRetained
ShaderError setUniform3iArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, int[] value)
setUniform3iArray
in class ShaderProgramRetained
ShaderError setUniform3fArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, float[] value)
setUniform3fArray
in class ShaderProgramRetained
ShaderError setUniform4iArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, int[] value)
setUniform4iArray
in class ShaderProgramRetained
ShaderError setUniform4fArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, float[] value)
setUniform4fArray
in class ShaderProgramRetained
ShaderError setUniformMatrix3fArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, float[] value)
setUniformMatrix3fArray
in class ShaderProgramRetained
ShaderError setUniformMatrix4fArray(Context ctx, ShaderProgramId shaderProgramId, ShaderAttrLoc uniformLocation, int numElements, float[] value)
setUniformMatrix4fArray
in class ShaderProgramRetained
boolean isSupported(Canvas3D cv)
isSupported
in class ShaderProgramRetained
ShaderError createShader(Context ctx, ShaderRetained shader, ShaderId[] shaderIdArr)
createShader
in class ShaderProgramRetained
ShaderError destroyShader(Context ctx, ShaderId shaderId)
destroyShader
in class ShaderProgramRetained
ShaderError compileShader(Context ctx, ShaderId shaderId, java.lang.String source)
compileShader
in class ShaderProgramRetained
ShaderError createShaderProgram(Context ctx, ShaderProgramId[] shaderProgramIdArr)
createShaderProgram
in class ShaderProgramRetained
ShaderError destroyShaderProgram(Context ctx, ShaderProgramId shaderProgramId)
destroyShaderProgram
in class ShaderProgramRetained
ShaderError linkShaderProgram(Context ctx, ShaderProgramId shaderProgramId, ShaderId[] shaderIds)
linkShaderProgram
in class ShaderProgramRetained
ShaderError bindVertexAttrName(Context ctx, ShaderProgramId shaderProgramId, java.lang.String attrName, int attrIndex)
ShaderProgramRetained
bindVertexAttrName
in class ShaderProgramRetained
void lookupVertexAttrNames(Context ctx, ShaderProgramId shaderProgramId, java.lang.String[] attrNames, boolean[] errArr)
lookupVertexAttrNames
in class ShaderProgramRetained
void lookupShaderAttrNames(Context ctx, ShaderProgramId shaderProgramId, java.lang.String[] attrNames, ShaderProgramRetained.AttrNameInfo[] attrNameInfoArr)
ShaderProgramRetained
lookupShaderAttrNames
in class ShaderProgramRetained
ShaderError enableShaderProgram(Context ctx, ShaderProgramId shaderProgramId)
enableShaderProgram
in class ShaderProgramRetained
ShaderError disableShaderProgram(Context ctx)
disableShaderProgram
in class ShaderProgramRetained
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |