|
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.Shader
org.j3d.aviatrix3d.GL14Shader
public class GL14Shader
Shader container object for the shaders usable with OpenGL 1.4 with the separate vertex and fragment shader code.
Field Summary |
---|
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 |
Constructor Summary | |
---|---|
GL14Shader()
Constructs a Shader with default values. |
Method Summary | |
---|---|
int |
compareTo(GL14Shader sh)
Compares this object with the specified object for order. |
int |
compareTo(java.lang.Object o)
Compares this object with the specified object for order. |
boolean |
equals(GL14Shader sh)
Compares this object with the specified object to check for equivalence. |
boolean |
equals(java.lang.Object o)
Compare this object for equality to the given object. |
ComponentRenderable |
getArgumentsRenderable()
Get an object that represents arguments that should be passed along with the shader. |
FragmentShader |
getFragmentShader()
Get the current fragShader in use. |
ShaderComponentRenderable |
getShaderRenderable(int type)
Get the component of this shader, if it has one. |
VertexShader |
getVertexShader()
Get the current vertexShader in use. |
void |
postRender(javax.media.opengl.GL gl)
Restore all openGL state. |
void |
render(javax.media.opengl.GL gl)
Issue ogl commands needed for this component. |
void |
setFragmentShader(FragmentShader shader)
Set the fragment shader to use. |
protected void |
setLive(boolean state)
Notification that this object is live now. |
protected void |
setUpdateHandler(NodeUpdateHandler handler)
Set the scenegraph update handler for this node. |
void |
setVertexShader(VertexShader shader)
Set the vertexShader to use. |
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, setUserData |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GL14Shader()
Method Detail |
---|
public ComponentRenderable getArgumentsRenderable()
getArgumentsRenderable
in interface ShaderRenderable
public ShaderComponentRenderable getShaderRenderable(int type)
getShaderRenderable
in interface ShaderRenderable
type
- One of the _SHADER constants from
ShaderComponentRenderable
public void render(javax.media.opengl.GL gl)
render
in interface ObjectRenderable
gl
- The gl context to draw withpublic void postRender(javax.media.opengl.GL gl)
postRender
in interface ObjectRenderable
gl
- The gl context to draw withprotected void setLive(boolean state)
setLive
in class SceneGraphObject
state
- true if this should be marked as live nowprotected void setUpdateHandler(NodeUpdateHandler handler)
setUpdateHandler
in class SceneGraphObject
handler
- The instance to use as a handlerpublic int compareTo(java.lang.Object o) throws java.lang.ClassCastException
compareTo
in interface java.lang.Comparable
o
- The object to be compared
java.lang.ClassCastException
- The specified object's type prevents it from
being compared to this Objectpublic boolean equals(java.lang.Object o)
equals
in interface Renderable
equals
in class java.lang.Object
o
- The object to be compared
public void setVertexShader(VertexShader shader) throws InvalidWriteTimingException
shader
- The new shader instance to use or null
InvalidWriteTimingException
- An attempt was made to write outside
of the NodeUpdateListener data changed callback methodpublic VertexShader getVertexShader()
public void setFragmentShader(FragmentShader shader) throws InvalidWriteTimingException
shader
- The new shader instance to use or null
InvalidWriteTimingException
- An attempt was made to write outside
of the NodeUpdateListener data changed callback methodpublic FragmentShader getFragmentShader()
public int compareTo(GL14Shader sh)
sh
- The shader instance to be compared
public boolean equals(GL14Shader sh)
sh
- The shader instance to be compared
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |