org.xith3d.scenegraph
Class Shader

java.lang.Object
  extended by org.xith3d.scenegraph.Shader
All Implemented Interfaces:
java.lang.Comparable<Shader>, org.jagatoo.datatypes.Enableable
Direct Known Subclasses:
AssemblyShader, GLSLShader

public abstract class Shader
extends java.lang.Object
implements java.lang.Comparable<Shader>, org.jagatoo.datatypes.Enableable

Base for any Shader.


Nested Class Summary
static class Shader.ShaderType
           
 
Constructor Summary
Shader(Shader.ShaderType type, java.lang.String shaderCode, boolean enabled)
           
 
Method Summary
abstract  int compareTo(Shader o)
          
abstract  boolean equals(java.lang.Object obj)
          
protected  void finalize()
          
 void freeOpenGLResources(CanvasPeer canvasPeer)
           
 SceneGraphOpenGLReferences getOpenGLReferences()
           
 java.lang.String getShaderCode()
           
 Shader.ShaderType getType()
           
 boolean isEnabled()
           
 void setEnabled(boolean programState)
           
 void setShaderCode(java.lang.String shaderCode)
           
 
Methods inherited from class java.lang.Object
clone, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Shader

public Shader(Shader.ShaderType type,
              java.lang.String shaderCode,
              boolean enabled)
Method Detail

getOpenGLReferences

public final SceneGraphOpenGLReferences getOpenGLReferences()

finalize

protected void finalize()

Overrides:
finalize in class java.lang.Object

freeOpenGLResources

public void freeOpenGLResources(CanvasPeer canvasPeer)

getType

public final Shader.ShaderType getType()

setEnabled

public final void setEnabled(boolean programState)
Specified by:
setEnabled in interface org.jagatoo.datatypes.Enableable

isEnabled

public final boolean isEnabled()
Specified by:
isEnabled in interface org.jagatoo.datatypes.Enableable

setShaderCode

public final void setShaderCode(java.lang.String shaderCode)

getShaderCode

public final java.lang.String getShaderCode()

compareTo

public abstract int compareTo(Shader o)

Specified by:
compareTo in interface java.lang.Comparable<Shader>

equals

public abstract boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object