public class MaterialTextureEffect extends ShaderEffect implements StreamInterface, Serializable
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
m_iPassQuantity, m_kAlphaState, m_kCompiledPrograms, m_kPShader, m_kVShader
Constructor and Description |
---|
MaterialTextureEffect()
streaming constructor
|
MaterialTextureEffect(String rkBaseName)
Creates a new MaterialTextureEffect with the texture stored in the
rkBaseName image file.
|
Modifier and Type | Method and Description |
---|---|
int |
GetDiskUsed(StreamVersion rkVersion)
Returns the size of this object and it's children on disk for the
current StreamVersion parameter.
|
void |
Link(Stream rkStream,
Stream.Link pkLink)
Copies this objects children objects from the input Stream's HashTable,
based on the LinkID of the child stored in the pkLink parameter.
|
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)
This function is called in LoadPrograms once the shader programs are
created.
|
boolean |
Register(Stream rkStream)
Registers this object with the input Stream parameter.
|
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.
|
dispose, GetAllObjectsByName, GetBlending, GetCProgram, GetObjectByID, GetObjectByName, GetPassQuantity, GetPProgram, GetSamplerInformation, GetTexture, GetTexture, GetTextureQuantity, GetVProgram, LoadPrograms, LoadResources, OnReleasePrograms, ReleasePrograms, ReleaseResources, RestoreGlobalState, SetCProgram, SetDefaultAlphaState, SetGlobalState, SetPassQuantity, SetPShader, SetVShader
GetID, GetName, GetNextID, GetObjectByIDBase, GetObjectByNameBase, SetName
private static final long serialVersionUID
public MaterialTextureEffect()
public MaterialTextureEffect(String rkBaseName)
rkBaseName
- the image file containing the texture for this
Effect.public int GetDiskUsed(StreamVersion rkVersion)
GetDiskUsed
in interface StreamInterface
GetDiskUsed
in class ShaderEffect
rkVersion
- the current version of the Stream file being created.public void Link(Stream rkStream, Stream.Link pkLink)
Link
in interface StreamInterface
Link
in class ShaderEffect
rkStream
- the Stream where the child objects are stored.pkLink
- the Link class from which the child object IDs are read.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)
ShaderEffect
OnLoadPrograms
in class ShaderEffect
iPass
- the ith rendering passpublic boolean Register(Stream rkStream)
Register
in interface StreamInterface
Register
in class ShaderEffect
rkStream
- the Stream where the child objects are stored.public 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.