org.xith3d.scenegraph
Class AssemblyShader

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

public abstract class AssemblyShader
extends Shader


Nested Class Summary
 
Nested classes/interfaces inherited from class org.xith3d.scenegraph.Shader
Shader.ShaderType
 
Field Summary
protected  org.openmali.vecmath2.Vector4f[] shaderProgramParameters
           
 
Constructor Summary
AssemblyShader(Shader.ShaderType type)
           
AssemblyShader(Shader.ShaderType type, java.lang.String shaderCode)
           
AssemblyShader(Shader.ShaderType type, java.lang.String shaderCode, org.openmali.vecmath2.Vector4f[] parameters)
           
AssemblyShader(Shader.ShaderType type, java.lang.String shaderCode, org.openmali.vecmath2.Vector4f[] parameters, boolean enabled)
           
 
Method Summary
 int compareTo(Shader o)
          
 boolean equals(java.lang.Object o)
          
 int getNumParameters()
           
 org.openmali.vecmath2.Vector4f getParameter(int index)
           
 org.openmali.vecmath2.Vector4f[] getParameters()
           
 void setParameter(int index, org.openmali.vecmath2.Vector4f parameter)
           
 void setParameters(org.openmali.vecmath2.Vector4f[] parameters)
           
 
Methods inherited from class org.xith3d.scenegraph.Shader
finalize, freeOpenGLResources, getOpenGLReferences, getShaderCode, getType, isEnabled, setEnabled, setShaderCode
 
Methods inherited from class java.lang.Object
clone, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

shaderProgramParameters

protected org.openmali.vecmath2.Vector4f[] shaderProgramParameters
Constructor Detail

AssemblyShader

public AssemblyShader(Shader.ShaderType type,
                      java.lang.String shaderCode,
                      org.openmali.vecmath2.Vector4f[] parameters,
                      boolean enabled)

AssemblyShader

public AssemblyShader(Shader.ShaderType type,
                      java.lang.String shaderCode,
                      org.openmali.vecmath2.Vector4f[] parameters)

AssemblyShader

public AssemblyShader(Shader.ShaderType type,
                      java.lang.String shaderCode)

AssemblyShader

public AssemblyShader(Shader.ShaderType type)
Method Detail

setParameters

public final void setParameters(org.openmali.vecmath2.Vector4f[] parameters)

setParameter

public final void setParameter(int index,
                               org.openmali.vecmath2.Vector4f parameter)

getParameters

public final org.openmali.vecmath2.Vector4f[] getParameters()

getParameter

public final org.openmali.vecmath2.Vector4f getParameter(int index)

getNumParameters

public final int getNumParameters()

equals

public boolean equals(java.lang.Object o)

Specified by:
equals in class Shader

compareTo

public int compareTo(Shader o)

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