Package WildMagic.LibGraphics.Effects
Class IridescenceEffect
- java.lang.Object
-
- WildMagic.LibGraphics.ObjectSystem.GraphicsObject
-
- WildMagic.LibGraphics.Effects.Effect
-
- WildMagic.LibGraphics.Effects.ShaderEffect
-
- WildMagic.LibGraphics.Effects.IridescenceEffect
-
- All Implemented Interfaces:
java.io.Serializable,NameIdInterface,StreamInterface
public class IridescenceEffect extends ShaderEffect implements StreamInterface, java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected float[]m_afInterpolateThe interpolation factor is stored at index 0.private static longserialVersionUID-
Fields inherited from class WildMagic.LibGraphics.Effects.ShaderEffect
m_iPassQuantity, m_kAlphaState, m_kCompiledPrograms, m_kPShader, m_kVShader
-
-
Constructor Summary
Constructors Constructor Description IridescenceEffect()streaming constructorIridescenceEffect(java.lang.String acBaseName, java.lang.String acGradName)Creates an IridescenceEffect withe the texture images in the acBaseName and acGradName image files.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Delete memoryintGetDiskUsed(StreamVersion rkVersion)Returns the size of this object and it's children on disk for the current StreamVersion parameter.floatGetInterpolateFactor()Returns the interpolation factorvoidLoad(Stream rkStream, Stream.Link pkLink)Loads this object from the input parameter rkStream, using the input Stream.Link to store the IDs of children objects of this object for linking after all objects are loaded from the Stream.voidOnLoadPrograms(int iPass, Program pkVProgram, Program pkPProgram, Program pkCProgram)Set the user-defined constants to use local storage.voidSave(Stream rkStream)Write this object and all it's children to the Stream.StringTreeSaveStrings(java.lang.String acTitle)Write this object into a StringTree for the scene-graph visualization.voidSetInterpolateFactor(float fInterpolateFactor)Sets the interpolation factor-
Methods inherited from class WildMagic.LibGraphics.Effects.ShaderEffect
GetAllObjectsByName, GetBlending, GetCProgram, GetObjectByID, GetObjectByName, GetPassQuantity, GetPProgram, GetSamplerInformation, GetTexture, GetTexture, GetTextureQuantity, GetVProgram, Link, LoadPrograms, LoadResources, OnReleasePrograms, Register, ReleasePrograms, ReleaseResources, RestoreGlobalState, SetCProgram, SetDefaultAlphaState, SetGlobalState, SetPassQuantity, SetPShader, SetVShader
-
Methods inherited from class WildMagic.LibGraphics.ObjectSystem.GraphicsObject
GetID, GetName, GetNextID, GetObjectByIDBase, GetObjectByNameBase, SetName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface WildMagic.LibGraphics.ObjectSystem.StreamInterface
Link, Register
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
m_afInterpolate
protected float[] m_afInterpolate
The interpolation factor is stored at index 0. The other values are unused.
-
-
Constructor Detail
-
IridescenceEffect
public IridescenceEffect()
streaming constructor
-
IridescenceEffect
public IridescenceEffect(java.lang.String acBaseName, java.lang.String acGradName)Creates an IridescenceEffect withe the texture images in the acBaseName and acGradName image files.- Parameters:
acBaseName- the base image texture.acGradName- the gradient image texture.
-
-
Method Detail
-
dispose
public void dispose()
Delete memory- Overrides:
disposein classShaderEffect
-
GetDiskUsed
public int GetDiskUsed(StreamVersion rkVersion)
Returns the size of this object and it's children on disk for the current StreamVersion parameter.- Specified by:
GetDiskUsedin interfaceStreamInterface- Overrides:
GetDiskUsedin classShaderEffect- Parameters:
rkVersion- the current version of the Stream file being created.- Returns:
- the size of this object on disk.
-
GetInterpolateFactor
public float GetInterpolateFactor()
Returns the interpolation factor- Returns:
- fInterpolateFactor
-
Load
public void Load(Stream rkStream, Stream.Link pkLink)
Loads this object from the input parameter rkStream, using the input Stream.Link to store the IDs of children objects of this object for linking after all objects are loaded from the Stream.- Specified by:
Loadin interfaceStreamInterface- Overrides:
Loadin classShaderEffect- Parameters:
rkStream- the Stream from which this object is being read.pkLink- the Link class for storing the IDs of this object's children objects.
-
OnLoadPrograms
public void OnLoadPrograms(int iPass, Program pkVProgram, Program pkPProgram, Program pkCProgram)Set the user-defined constants to use local storage.- Overrides:
OnLoadProgramsin classShaderEffect- Parameters:
iPass-pkVProgram- the VertexProgram for this EffectpkPProgram- the PixelProgram for this Effect
-
Save
public void Save(Stream rkStream)
Write this object and all it's children to the Stream.- Specified by:
Savein interfaceStreamInterface- Overrides:
Savein classShaderEffect- Parameters:
rkStream- the Stream where the child objects are stored.
-
SaveStrings
public StringTree SaveStrings(java.lang.String acTitle)
Write this object into a StringTree for the scene-graph visualization.- Specified by:
SaveStringsin interfaceStreamInterface- Overrides:
SaveStringsin classShaderEffect- Parameters:
acTitle- the header for this object in the StringTree.- Returns:
- StringTree containing a String-based representation of this object and it's children.
-
SetInterpolateFactor
public void SetInterpolateFactor(float fInterpolateFactor)
Sets the interpolation factor- Parameters:
fInterpolateFactor-
-
-