org.xith3d.scenegraph
Class GLSLParameters

java.lang.Object
  extended by org.xith3d.scenegraph.SceneGraphObject
      extended by org.xith3d.scenegraph.NodeComponent
          extended by org.xith3d.scenegraph.GLSLParameters
All Implemented Interfaces:
org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject

public class GLSLParameters
extends NodeComponent

Created on Jul 7, 2006 by florian for project 'xith3d_glsl_shader_support'


Field Summary
 
Fields inherited from class org.xith3d.scenegraph.SceneGraphObject
XITH3D_USERDATAKEY_OLDUSERDATA
 
Constructor Summary
GLSLParameters()
           
 
Method Summary
 GLSLParameters cloneNodeComponent(boolean forceDuplicate)
           
protected  void duplicateNodeComponent(NodeComponent original, boolean forceDuplicate)
           
 boolean equals(java.lang.Object o)
           
 void freeOpenGLResources(CanvasPeer canvasPeer)
          This method frees OpenGL resources (names) for all this NodeComponent and all child-components.
 GLSLParameters getCopy()
           
 java.lang.String getFloatUniformVarName(int i)
           
 java.lang.String getIntUniformVarName(int i)
           
 int getNumUniformVarsFloat()
           
 int getNumUniformVarsInt()
           
 int getUniformVarBaseSizeFloat(int i)
           
 int getUniformVarBaseSizeInt(int i)
           
 float[] getUniformVarValueFloat(int i)
           
 float[] getUniformVarValueFloat(java.lang.String varName)
           
 int[] getUniformVarValueInt(int i)
           
 int[] getUniformVarValueInt(java.lang.String varName)
           
 boolean hasUniformVars()
           
 void removeUniformVar(java.lang.String name)
           
 void setUniformVar(java.lang.String name, org.openmali.vecmath2.Colorf value)
           
 void setUniformVar(java.lang.String name, org.openmali.vecmath2.Colorf[] values)
           
 void setUniformVar(java.lang.String name, float value)
           
 void setUniformVar(java.lang.String name, float[] values)
           
 void setUniformVar(java.lang.String name, int value)
           
 void setUniformVar(java.lang.String name, int[] values)
           
 void setUniformVar(java.lang.String name, int baseSize, float... values)
           
 void setUniformVar(java.lang.String name, int baseSize, int... values)
           
 void setUniformVar(java.lang.String name, org.openmali.vecmath2.Matrix3f value)
           
 void setUniformVar(java.lang.String name, org.openmali.vecmath2.Matrix3f[] values)
           
 void setUniformVar(java.lang.String name, org.openmali.vecmath2.Matrix4f value)
           
 void setUniformVar(java.lang.String name, org.openmali.vecmath2.Matrix4f[] values)
           
 void setUniformVar(java.lang.String name, org.openmali.vecmath2.TexCoordf<?> value)
           
 void setUniformVar(java.lang.String name, org.openmali.vecmath2.TexCoordf<?>[] values)
           
 void setUniformVar(java.lang.String name, org.openmali.vecmath2.TupleNf<?> value)
           
 void setUniformVar(java.lang.String name, org.openmali.vecmath2.TupleNf<?>[] values)
           
 void setUniformVar(java.lang.String name, org.openmali.vecmath2.TupleNi<?> value)
           
 void setUniformVar(java.lang.String name, org.openmali.vecmath2.TupleNi<?>[] values)
           
 
Methods inherited from class org.xith3d.scenegraph.NodeComponent
freeOpenGLResources, getDuplicateOnCloneTree, getModListener, isChanged, isChanged2, setChanged, setDuplicateOnCloneTree, setModListener
 
Methods inherited from class org.xith3d.scenegraph.SceneGraphObject
getName, getUserData, getUserData, getUserDataMap, isLive, setLive, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GLSLParameters

public GLSLParameters()
Method Detail

getNumUniformVarsFloat

public final int getNumUniformVarsFloat()

getNumUniformVarsInt

public final int getNumUniformVarsInt()

hasUniformVars

public final boolean hasUniformVars()

getUniformVarBaseSizeFloat

public final int getUniformVarBaseSizeFloat(int i)

getUniformVarBaseSizeInt

public final int getUniformVarBaseSizeInt(int i)

getFloatUniformVarName

public final java.lang.String getFloatUniformVarName(int i)

getIntUniformVarName

public final java.lang.String getIntUniformVarName(int i)

getUniformVarValueFloat

public final float[] getUniformVarValueFloat(java.lang.String varName)

getUniformVarValueInt

public final int[] getUniformVarValueInt(java.lang.String varName)

getUniformVarValueFloat

public final float[] getUniformVarValueFloat(int i)

getUniformVarValueInt

public final int[] getUniformVarValueInt(int i)

setUniformVar

public final void setUniformVar(java.lang.String name,
                                float[] values)

setUniformVar

public final void setUniformVar(java.lang.String name,
                                float value)

setUniformVar

public final void setUniformVar(java.lang.String name,
                                int[] values)

setUniformVar

public final void setUniformVar(java.lang.String name,
                                int value)

setUniformVar

public final void setUniformVar(java.lang.String name,
                                org.openmali.vecmath2.Matrix3f[] values)

setUniformVar

public final void setUniformVar(java.lang.String name,
                                org.openmali.vecmath2.Matrix3f value)

setUniformVar

public final void setUniformVar(java.lang.String name,
                                org.openmali.vecmath2.Matrix4f[] values)

setUniformVar

public final void setUniformVar(java.lang.String name,
                                org.openmali.vecmath2.Matrix4f value)

setUniformVar

public final void setUniformVar(java.lang.String name,
                                org.openmali.vecmath2.TupleNf<?>[] values)

setUniformVar

public final void setUniformVar(java.lang.String name,
                                org.openmali.vecmath2.TupleNf<?> value)

setUniformVar

public final void setUniformVar(java.lang.String name,
                                int baseSize,
                                float... values)

setUniformVar

public final void setUniformVar(java.lang.String name,
                                int baseSize,
                                int... values)

setUniformVar

public final void setUniformVar(java.lang.String name,
                                org.openmali.vecmath2.Colorf[] values)

setUniformVar

public final void setUniformVar(java.lang.String name,
                                org.openmali.vecmath2.Colorf value)

setUniformVar

public final void setUniformVar(java.lang.String name,
                                org.openmali.vecmath2.TexCoordf<?>[] values)

setUniformVar

public final void setUniformVar(java.lang.String name,
                                org.openmali.vecmath2.TexCoordf<?> value)

setUniformVar

public final void setUniformVar(java.lang.String name,
                                org.openmali.vecmath2.TupleNi<?>[] values)

setUniformVar

public final void setUniformVar(java.lang.String name,
                                org.openmali.vecmath2.TupleNi<?> value)

removeUniformVar

public final void removeUniformVar(java.lang.String name)

getCopy

public GLSLParameters getCopy()

duplicateNodeComponent

protected void duplicateNodeComponent(NodeComponent original,
                                      boolean forceDuplicate)
Overrides:
duplicateNodeComponent in class NodeComponent

cloneNodeComponent

public GLSLParameters cloneNodeComponent(boolean forceDuplicate)
Specified by:
cloneNodeComponent in class NodeComponent

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

freeOpenGLResources

public void freeOpenGLResources(CanvasPeer canvasPeer)
Description copied from class: NodeComponent
This method frees OpenGL resources (names) for all this NodeComponent and all child-components.

Specified by:
freeOpenGLResources in class NodeComponent