|
j3d.org Aviatrix3D | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.j3d.aviatrix3d.SceneGraphObject
org.j3d.aviatrix3d.NodeComponent
org.j3d.aviatrix3d.ShaderProgram
Base class representing a single shader program that can be applied to the rendering pipeline.
Field Summary | |
protected boolean |
programChanged
Flag to say that the string has changed and should be recompiled |
protected int |
programId
The ID of the shader program that has been allocated here |
protected java.lang.String |
programString
The program string that is stored as the shader |
Fields inherited from class org.j3d.aviatrix3d.NodeComponent |
liveCount |
Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject |
alive, updateHandler, WRITE_TIMING_MSG |
Constructor Summary | |
ShaderProgram()
Constructs a Shader with default values. |
Method Summary | |
java.lang.String |
getProgramString()
Get the currently set program string. |
void |
setProgramString(java.lang.String str)
Set the program string that is to be registered by this shader. |
Methods inherited from class org.j3d.aviatrix3d.NodeComponent |
addParent, getParents, hasChanged, numParents, removeParent, renderState, restoreState |
Methods inherited from class org.j3d.aviatrix3d.SceneGraphObject |
checkForCyclicChild, checkForCyclicParent, dataChanged, getUserData, isLive, setLive, setUpdateHandler, setUserData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String programString
protected boolean programChanged
protected int programId
Constructor Detail |
public ShaderProgram()
Method Detail |
public void setProgramString(java.lang.String str) throws InvalidWriteTimingException
str
- The new program string to be registered or null
InvalidWriteTimingException
- An attempt was made to write outside
of the NodeUpdateListener callback methodpublic java.lang.String getProgramString()
|
j3d.org Aviatrix3D | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |