Aviatrix3D
2.1.0

org.j3d.aviatrix3d.iutil
Class ShaderAttribValue

java.lang.Object
  extended by org.j3d.aviatrix3d.iutil.ShaderAttribValue

public class ShaderAttribValue
extends java.lang.Object

Internal data holder class to hold argument values inside the Geometry classes for shader attribute values.

Version:
$Revision: 1.2 $
Author:
Justin Couch

Field Summary
 java.nio.Buffer data
          The buffer holding the data
 int dataType
          The type of data for this value.
 boolean normalise
          Flag for whether the matrix values should be normalised
 int size
          The number of items in a single value - 1, 2, 3 or 4
 
Constructor Summary
ShaderAttribValue()
          Create a new instance of the value.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare this object for equality to the given object.
 boolean equals(ShaderAttribValue sav)
          Compares this object with the specified object to check for equivalence.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataType

public int dataType
The type of data for this value. See constants above


size

public int size
The number of items in a single value - 1, 2, 3 or 4


normalise

public boolean normalise
Flag for whether the matrix values should be normalised


data

public java.nio.Buffer data
The buffer holding the data

Constructor Detail

ShaderAttribValue

public ShaderAttribValue()
Create a new instance of the value. Set the uniform location to -1 to indicate it has not been fetched yet.

Method Detail

equals

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

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

equals

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

Parameters:
sav - The shader value 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