public class IridescenceEffect extends ShaderEffect implements StreamInterface, Serializable
Modifier and Type | Field and Description |
---|---|
protected float[] |
m_afInterpolate
The interpolation factor is stored at index 0.
|
private static long |
serialVersionUID |
m_iPassQuantity, m_kAlphaState, m_kCompiledPrograms, m_kPShader, m_kVShader
Constructor and Description |
---|
IridescenceEffect()
streaming constructor
|
IridescenceEffect(String acBaseName,
String acGradName)
Creates an IridescenceEffect withe the texture images in the acBaseName
and acGradName image files.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Delete memory
|
int |
GetDiskUsed(StreamVersion rkVersion)
Returns the size of this object and it's children on disk for the
current StreamVersion parameter.
|
float |
GetInterpolateFactor()
Returns the interpolation factor
|
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.
|
void |
OnLoadPrograms(int iPass,
Program pkVProgram,
Program pkPProgram,
Program pkCProgram)
Set the user-defined constants to use local storage.
|
void |
Save(Stream rkStream)
Write this object and all it's children to the Stream.
|
StringTree |
SaveStrings(String acTitle)
Write this object into a StringTree for the scene-graph visualization.
|
void |
SetInterpolateFactor(float fInterpolateFactor)
Sets the interpolation factor
|
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
GetID, GetName, GetNextID, GetObjectByIDBase, GetObjectByNameBase, SetName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Link, Register
private static final long serialVersionUID
protected float[] m_afInterpolate
public void dispose()
dispose
in class ShaderEffect
public int GetDiskUsed(StreamVersion rkVersion)
GetDiskUsed
in interface StreamInterface
GetDiskUsed
in class ShaderEffect
rkVersion
- the current version of the Stream file being created.public float GetInterpolateFactor()
public void Load(Stream rkStream, Stream.Link pkLink)
Load
in interface StreamInterface
Load
in class ShaderEffect
rkStream
- the Stream from which this object is being read.pkLink
- the Link class for storing the IDs of this object's
children objects.public void OnLoadPrograms(int iPass, Program pkVProgram, Program pkPProgram, Program pkCProgram)
OnLoadPrograms
in class ShaderEffect
iPass
- pkVProgram
- the VertexProgram for this EffectpkPProgram
- the PixelProgram for this Effectpublic void Save(Stream rkStream)
Save
in interface StreamInterface
Save
in class ShaderEffect
rkStream
- the Stream where the child objects are stored.public StringTree SaveStrings(String acTitle)
SaveStrings
in interface StreamInterface
SaveStrings
in class ShaderEffect
acTitle
- the header for this object in the StringTree.public void SetInterpolateFactor(float fInterpolateFactor)
fInterpolateFactor
-