|
Aviatrix3D 2.1.0 |
|||||||||
| 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.GL14ShaderProgram
public abstract class GL14ShaderProgram
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 java.util.HashMap<javax.media.opengl.GL,java.lang.Integer> |
programIdMap
Mapping of GL context to shader program ID |
protected java.lang.String |
programString
The program string that is stored as the shader |
| Fields inherited from class org.j3d.aviatrix3d.NodeComponent |
|---|
lastParent, liveCount, parentList |
| Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject |
|---|
alive, LISTENER_SET_TIMING_ERR_PROP, updateHandler |
| Fields inherited from interface org.j3d.aviatrix3d.rendering.ShaderComponentRenderable |
|---|
FRAGMENT_SHADER, GEOMETRY_SHADER, PROGRAM_SHADER, VERTEX_SHADER |
| Constructor Summary | |
|---|---|
GL14ShaderProgram()
Constructs a Shader with default values. |
|
| Method Summary | |
|---|---|
int |
getProgramId(javax.media.opengl.GL gl)
Fetch the ID handle for this program for the given context. |
java.lang.String |
getProgramString()
Get the currently set program string. |
boolean |
isValid(javax.media.opengl.GL gl)
Check to see if this is linked for the given GL context. |
void |
reinitialize(javax.media.opengl.GL gl)
Re-initialise this shader because the underlying GL context has changed. |
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, numParents, removeParent |
| Methods inherited from class org.j3d.aviatrix3d.SceneGraphObject |
|---|
checkForCyclicChild, checkForCyclicParent, dataChanged, getAppUpdateWriteTimingMessage, getBoundsWriteTimingMessage, getDataWriteTimingMessage, getUserData, isLive, setLive, setUpdateHandler, setUserData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.j3d.aviatrix3d.rendering.ShaderComponentRenderable |
|---|
getComponentType |
| Methods inherited from interface org.j3d.aviatrix3d.rendering.ObjectRenderable |
|---|
postRender, render |
| Methods inherited from interface org.j3d.aviatrix3d.rendering.Renderable |
|---|
equals |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
protected java.lang.String programString
protected boolean programChanged
protected java.util.HashMap<javax.media.opengl.GL,java.lang.Integer> programIdMap
| Constructor Detail |
|---|
public GL14ShaderProgram()
| Method Detail |
|---|
public boolean isValid(javax.media.opengl.GL gl)
isValid in interface ShaderComponentRenderablegl - The GL context to test for linkage against
public int getProgramId(javax.media.opengl.GL gl)
getProgramId in interface ShaderComponentRenderablegl - The GL context to get the ID for
public void reinitialize(javax.media.opengl.GL gl)
reinitialize in interface ShaderComponentRenderablegl - The GL context to reinitialise with
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 data changed callback methodpublic java.lang.String getProgramString()
|
Aviatrix3D 2.1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||