Aviatrix3D
2.1.0

org.j3d.aviatrix3d
Class FragmentShader

java.lang.Object
  extended by org.j3d.aviatrix3d.SceneGraphObject
      extended by org.j3d.aviatrix3d.NodeComponent
          extended by org.j3d.aviatrix3d.GL14ShaderProgram
              extended by org.j3d.aviatrix3d.FragmentShader
All Implemented Interfaces:
java.lang.Comparable, ObjectRenderable, Renderable, ShaderComponentRenderable

public class FragmentShader
extends GL14ShaderProgram

Node that handles an ARB fragment shader.

Version:
$Revision: 1.16 $
Author:
Justin Couch

Field Summary
 
Fields inherited from class org.j3d.aviatrix3d.GL14ShaderProgram
programChanged, programIdMap, programString
 
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
FragmentShader()
          Constructs a TexCoordGeneration with default values.
 
Method Summary
 int compareTo(FragmentShader 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(FragmentShader 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.
 int getComponentType()
          Get the type of component this state represents.
 void postRender(javax.media.opengl.GL gl)
           
 void render(javax.media.opengl.GL gl)
          Set up the rendering state now.
 
Methods inherited from class org.j3d.aviatrix3d.GL14ShaderProgram
getProgramId, getProgramString, isValid, reinitialize, setProgramString
 
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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FragmentShader

public FragmentShader()
Constructs a TexCoordGeneration with default values.

Method Detail

getComponentType

public int getComponentType()
Get the type of component this state represents.

Returns:
One of the _SHADER constants

render

public void render(javax.media.opengl.GL gl)
Set up the rendering state now.

Parameters:
gl - The gl context to draw with

postRender

public void postRender(javax.media.opengl.GL gl)

compareTo

public int compareTo(java.lang.Object o)
              throws java.lang.ClassCastException
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Parameters:
o - The objec to be compared
Returns:
-1, 0 or 1 depending on order
Throws:
java.lang.ClassCastException - The specified object's type prevents it from being compared to this Object

equals

public boolean equals(java.lang.Object o)
Compare this object for equality to the given object.

Specified by:
equals in interface Renderable
Overrides:
equals in class java.lang.Object
Parameters:
o - The object to be compared
Returns:
True if these represent the same values

compareTo

public int compareTo(FragmentShader sh)
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Parameters:
sh - The shader instances to be compared
Returns:
-1, 0 or 1 depending on order

equals

public boolean equals(FragmentShader sh)
Compares this object with the specified object to check for equivalence.

Parameters:
sh - The shader instance to be compared
Returns:
true if the objects represent identical values

Aviatrix3D
2.1.0

Latest Info from http://aviatrix3d.j3d.org/
Copyright © 2003 - 2009 j3d.org