org.ogre4j
Class TextureUnitState

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.TextureUnitState
All Implemented Interfaces:
IAllocatedObject<IResourceAllocPolicy>, IResourceAllocatedObject, ITextureUnitState, INativeObject

public class TextureUnitState
extends NativeObject
implements ITextureUnitState


Nested Class Summary
static class TextureUnitState.BindingType
           
static class TextureUnitState.ContentType
           
static class TextureUnitState.EffectMap
           
static class TextureUnitState.EnvMapType
           
static class TextureUnitState.TextureAddressingMode
           
static class TextureUnitState.TextureCubeFace
           
static class TextureUnitState.TextureEffect
           
static class TextureUnitState.TextureEffectType
           
static class TextureUnitState.TextureTransformType
           
static class TextureUnitState.UVWAddressingMode
           
 
Nested classes/interfaces inherited from interface org.ogre4j.ITextureUnitState
ITextureUnitState.IEffectMap, ITextureUnitState.ITextureEffect, ITextureUnitState.IUVWAddressingMode
 
Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  TextureUnitState(InstancePointer p)
          This constructor is public for internal useage only!
protected TextureUnitState(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  TextureUnitState(IPass parent)
          Default constructor.
  TextureUnitState(IPass parent, ITextureUnitState oth)
           
  TextureUnitState(IPass parent, java.lang.String texName, long texCoordSet)
          Name-based constructor.
  TextureUnitState(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void _getAnimController(IController<java.lang.Float> returnValue)
          Gets the animation controller (as created because of setAnimatedTexture) if it exists.
 ITexturePtr _getTexturePtr()
          Get the texture pointer for the current frame.
 ITexturePtr _getTexturePtr(int frame)
          Get the texture pointer for a given frame.
 void _load()
          Internal method for loading this object as part of
 void _notifyNeedsRecompile()
          Tells the class that it needs recompilation.
 void _notifyParent(IPass parent)
          Notify this object that its parent has changed
 void _prepare()
          Internal method for preparing this object for load, as part of
 void _setTexturePtr(ITexturePtr texptr)
          Set the texture pointer for the current frame (internal use only!).
 void _setTexturePtr(ITexturePtr texptr, int frame)
          Set the texture pointer for a given frame (internal use only!).
 void _unload()
          Internal method for unloading this object as part of
 void _unprepare()
          Internal method for undoing the preparation this object as part of Material::unprepare
 void addEffect(ITextureUnitState.ITextureEffect effect)
          Generic method for setting up texture effects.
 void addFrameTextureName(java.lang.String name)
          Add a name to the end of the frame container.
 boolean applyTextureAliases(IAliasTextureNamePairList aliasList, boolean apply)
          Applies texture names to Unit State with matching texture name aliases.
 void delete()
          Deletes the corresponding C++ object.
 void deleteFrameTextureName(int frameNumber)
          deletes a specific texture frame.
 void finalize()
           
 ILayerBlendModeEx getAlphaBlendMode()
          Get multitexturing alpha blending mode.
 float getAnimationDuration()
           
 TextureUnitState.BindingType getBindingType()
          Gets the type of unit these texture settings should be bound to.
 SceneBlendFactor getColourBlendFallbackDest()
          Get the multipass fallback for colour blending operation destination factor.
 SceneBlendFactor getColourBlendFallbackSrc()
          Get the multipass fallback for colour blending operation source factor.
 ILayerBlendModeEx getColourBlendMode()
          Get multitexturing colour blending mode.
 TextureUnitState.ContentType getContentType()
          Get the type of content this references.
 long getCurrentFrame()
          Gets the active frame in an animated or multi-image texture layer.
 PixelFormat getDesiredFormat()
          Gets the desired pixel format when load the texture.
 ITextureUnitState.IEffectMap getEffects()
           
 java.lang.String getFrameTextureName(long frameNumber)
          Gets the name of the texture associated with a frame number.
 boolean getIsAlpha()
          Gets whether this texture is requested to be loaded as alpha if single channel
 java.lang.String getName()
           
 long getNumFrames()
          Gets the number of frames for a texture.
 int getNumMipmaps()
          Gets how many mipmaps have been requested for the texture.
 IPass getParent()
           
 ITextureUnitState.IUVWAddressingMode getTextureAddressingMode()
          Gets the texture addressing mode for a given coordinate, i.e. what happens at uv values above 1.0.
 long getTextureAnisotropy()
           
 IColourValue getTextureBorderColour()
          Sets the texture border colour.
 long getTextureCoordSet()
          Gets the index of the set of texture co-ords this layer uses.
 void getTextureDimensions(Ipair<java.lang.Integer,java.lang.Integer> returnValue, long frame)
          Returns the width and height of the texture in the given frame.
 FilterOptions getTextureFiltering(FilterType ftpye)
           
 float getTextureMipmapBias()
          Gets the bias value applied to the mipmap calculation.
 java.lang.String getTextureName()
          Get the name of current texture image for this layer.
 java.lang.String getTextureNameAlias()
          gets the Name Alias of the Unit.
 IRadian getTextureRotate()
           
 IMatrix4 getTextureTransform()
          Gets the current texture transformation matrix.
 TextureType getTextureType()
          Returns the type of this texture.
 float getTextureUScale()
           
 float getTextureUScroll()
           
 float getTextureVScale()
           
 float getTextureVScroll()
           
 boolean hasViewRelativeTextureCoordinateGeneration()
           
 boolean is3D()
          Returns true if this texture layer uses a composite 3D cubic texture.
 boolean isBlank()
          Determines if this texture layer is currently blank.
 boolean isCubic()
          Returns true if this texture unit is either a series of 6 2D textures, each in it's own frame, or is a full 3D cube map.
 boolean isHardwareGammaEnabled()
           
 boolean isLoaded()
           
 boolean isTextureLoadFailing()
          Tests if the texture associated with this unit has failed to load.
 ITextureUnitState operatorAssignment(ITextureUnitState oth)
           
 void removeAllEffects()
          Removes all effects applied to this texture layer.
 void removeEffect(TextureUnitState.TextureEffectType type)
          Removes a single effect applied to this texture layer.
 void retryTextureLoad()
          Tells the unit to retry loading the texture if it had failed to load.
 void setAlphaOperation(LayerBlendOperationEx op, LayerBlendSource source1, LayerBlendSource source2, float arg1, float arg2, float manualBlend)
          Sets the alpha operation to be applied to this texture.
 void setAnimatedTextureName(java.lang.String name, long numFrames, float duration)
          Sets the names of the texture images for an animated texture.
 void setBindingType(TextureUnitState.BindingType bt)
          Sets the type of unit these texture settings should be bound to.
 void setBlank()
          Sets this texture layer to be blank.
 void setColourOperation(LayerBlendOperation op)
          Determines how this texture layer is combined with the one below it (or the diffuse colour of the geometry if this is layer 0).
 void setColourOperationEx(LayerBlendOperationEx op, LayerBlendSource source1, LayerBlendSource source2, IColourValue arg1, IColourValue arg2, float manualBlend)
          Setting advanced blending options.
 void setColourOpMultipassFallback(SceneBlendFactor sourceFactor, SceneBlendFactor destFactor)
          Sets the multipass fallback operation for this layer, if you used and not enough multitexturing hardware is available.
 void setContentType(TextureUnitState.ContentType ct)
          Set the type of content this references.
 void setCubicTextureName(java.lang.String name, boolean forUVW)
          Sets this texture layer to use a combination of 6 texture maps, each one relating to a face of a cube.
 void setCurrentFrame(long frameNumber)
          Changes the active frame in an animated or multi-image texture.
 void setDesiredFormat(PixelFormat desiredFormat)
          Sets the desired pixel format when load the texture.
 void setEnvironmentMap(boolean enable, TextureUnitState.EnvMapType envMapType)
          Turns on/off texture coordinate effect that makes this layer an environment map.
 void setFrameTextureName(java.lang.String name, long frameNumber)
          Sets the name of the texture associated with a frame.
 void setHardwareGammaEnabled(boolean enabled)
           
 void setIsAlpha(boolean isAlpha)
          Sets whether this texture is requested to be loaded as alpha if single channel
 void setName(java.lang.String name)
          Set the name of the Unit State
 void setNumMipmaps(int numMipmaps)
          Sets how many mipmaps have been requested for the texture.
 void setProjectiveTexturing(boolean enabled, IFrustum projectionSettings)
          Enables or disables projective texturing on this texture unit.
 void setRotateAnimation(float speed)
          Sets up an animated texture rotation for this layer.
 void setScrollAnimation(float uSpeed, float vSpeed)
          Sets up an animated scroll for the texture layer.
 void setTextureAddressingMode(ITextureUnitState.IUVWAddressingMode uvw)
          Sets the texture addressing mode, i.e. what happens at uv values above 1.0.
 void setTextureAddressingMode(TextureUnitState.TextureAddressingMode tam)
          Sets the texture addressing mode, i.e. what happens at uv values above 1.0.
 void setTextureAddressingMode(TextureUnitState.TextureAddressingMode u, TextureUnitState.TextureAddressingMode v, TextureUnitState.TextureAddressingMode w)
          Sets the texture addressing mode, i.e. what happens at uv values above 1.0.
 void setTextureAnisotropy(long maxAniso)
          Sets the anisotropy level to be used for this texture level.
 void setTextureBorderColour(IColourValue colour)
          Sets the texture border colour.
 void setTextureCoordSet(long set)
          Sets the index of the set of texture co-ords this layer uses.
 void setTextureFiltering(FilterOptions minFilter, FilterOptions magFilter, FilterOptions mipFilter)
          Set a the detailed filtering options on this texture unit.
 void setTextureFiltering(FilterType ftype, FilterOptions opts)
          Set a single filtering option on this texture unit.
 void setTextureFiltering(TextureFilterOptions filterType)
          Set the texture filtering for this unit, using the simplified interface.
 void setTextureMipmapBias(float bias)
          Sets the bias value applied to the mipmap calculation.
 void setTextureName(java.lang.String name, TextureType ttype)
          Sets this texture layer to use a single texture, given the name of the texture to use on this layer.
 void setTextureNameAlias(java.lang.String name)
          Set the alias name used for texture frame names
 void setTextureRotate(IRadian angle)
          Sets the anticlockwise rotation factor applied to texture coordinates.
 void setTextureScale(float uScale, float vScale)
          Sets the scaling factor applied to texture coordinates.
 void setTextureScroll(float u, float v)
          Sets the translation offset of the texture, ie scrolls the texture.
 void setTextureTransform(IMatrix4 xform)
          Sets a matrix used to transform any texture coordinates on this layer.
 void setTextureUScale(float value)
          As setTextureScale, but sets only U value.
 void setTextureUScroll(float value)
          As setTextureScroll, but sets only U value.
 void setTextureVScale(float value)
          As setTextureScale, but sets only V value.
 void setTextureVScroll(float value)
          As setTextureScroll, but sets only V value.
 void setTransformAnimation(TextureUnitState.TextureTransformType ttype, WaveformType waveType, float base, float frequency, float phase, float amplitude)
          Sets up a general time-relative texture modification effect.
 
Methods inherited from class org.xbig.base.NativeObject
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.xbig.base.INativeObject
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Constructor Detail

TextureUnitState

public TextureUnitState(InstancePointer p)
This constructor is public for internal useage only! Do not use it!


TextureUnitState

protected TextureUnitState(InstancePointer p,
                           boolean remote)
Creates a Java wrapper object for an existing C++ object. If remote is set to 'true' this object cannot be deleted in Java.


TextureUnitState

public TextureUnitState(WithoutNativeObject val)
Allows creation of Java objects without C++ objects.

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

TextureUnitState

public TextureUnitState(IPass parent)
Default constructor.


TextureUnitState

public TextureUnitState(IPass parent,
                        ITextureUnitState oth)

TextureUnitState

public TextureUnitState(IPass parent,
                        java.lang.String texName,
                        long texCoordSet)
Name-based constructor.

Method Detail

delete

public void delete()
Description copied from interface: INativeObject
Deletes the corresponding C++ object.

Subclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!

Specified by:
delete in interface INativeObject
Specified by:
delete in class NativeObject
See Also:
#remote

finalize

public void finalize()
Overrides:
finalize in class NativeObject

operatorAssignment

public ITextureUnitState operatorAssignment(ITextureUnitState oth)
Specified by:
operatorAssignment in interface ITextureUnitState

getTextureName

public java.lang.String getTextureName()
Get the name of current texture image for this layer.

Specified by:
getTextureName in interface ITextureUnitState

setTextureName

public void setTextureName(java.lang.String name,
                           TextureType ttype)
Sets this texture layer to use a single texture, given the name of the texture to use on this layer.

Specified by:
setTextureName in interface ITextureUnitState

setCubicTextureName

public void setCubicTextureName(java.lang.String name,
                                boolean forUVW)
Sets this texture layer to use a combination of 6 texture maps, each one relating to a face of a cube.

Specified by:
setCubicTextureName in interface ITextureUnitState

setAnimatedTextureName

public void setAnimatedTextureName(java.lang.String name,
                                   long numFrames,
                                   float duration)
Sets the names of the texture images for an animated texture.

Specified by:
setAnimatedTextureName in interface ITextureUnitState

getTextureDimensions

public void getTextureDimensions(Ipair<java.lang.Integer,java.lang.Integer> returnValue,
                                 long frame)
Returns the width and height of the texture in the given frame.

Specified by:
getTextureDimensions in interface ITextureUnitState

setCurrentFrame

public void setCurrentFrame(long frameNumber)
Changes the active frame in an animated or multi-image texture.

Specified by:
setCurrentFrame in interface ITextureUnitState

getCurrentFrame

public long getCurrentFrame()
Gets the active frame in an animated or multi-image texture layer.

Specified by:
getCurrentFrame in interface ITextureUnitState

getFrameTextureName

public java.lang.String getFrameTextureName(long frameNumber)
Gets the name of the texture associated with a frame number. Throws an exception if frameNumber exceeds the number of stored frames.

Specified by:
getFrameTextureName in interface ITextureUnitState

setFrameTextureName

public void setFrameTextureName(java.lang.String name,
                                long frameNumber)
Sets the name of the texture associated with a frame.

Specified by:
setFrameTextureName in interface ITextureUnitState

addFrameTextureName

public void addFrameTextureName(java.lang.String name)
Add a name to the end of the frame container.

Specified by:
addFrameTextureName in interface ITextureUnitState

deleteFrameTextureName

public void deleteFrameTextureName(int frameNumber)
deletes a specific texture frame. The texture used is not deleted but the texture will no longer be used by the Unit. An exception is raised if the frame number exceeds the number of actual frames.

Specified by:
deleteFrameTextureName in interface ITextureUnitState

getNumFrames

public long getNumFrames()
Gets the number of frames for a texture.

Specified by:
getNumFrames in interface ITextureUnitState

setBindingType

public void setBindingType(TextureUnitState.BindingType bt)
Sets the type of unit these texture settings should be bound to.

Specified by:
setBindingType in interface ITextureUnitState

getBindingType

public TextureUnitState.BindingType getBindingType()
Gets the type of unit these texture settings should be bound to.

Specified by:
getBindingType in interface ITextureUnitState

setContentType

public void setContentType(TextureUnitState.ContentType ct)
Set the type of content this references.

Specified by:
setContentType in interface ITextureUnitState

getContentType

public TextureUnitState.ContentType getContentType()
Get the type of content this references.

Specified by:
getContentType in interface ITextureUnitState

isCubic

public boolean isCubic()
Returns true if this texture unit is either a series of 6 2D textures, each in it's own frame, or is a full 3D cube map. You can tell which by checking getTextureType.

Specified by:
isCubic in interface ITextureUnitState

is3D

public boolean is3D()
Returns true if this texture layer uses a composite 3D cubic texture.

Specified by:
is3D in interface ITextureUnitState

getTextureType

public TextureType getTextureType()
Returns the type of this texture.

Specified by:
getTextureType in interface ITextureUnitState

setDesiredFormat

public void setDesiredFormat(PixelFormat desiredFormat)
Sets the desired pixel format when load the texture.

Specified by:
setDesiredFormat in interface ITextureUnitState

getDesiredFormat

public PixelFormat getDesiredFormat()
Gets the desired pixel format when load the texture.

Specified by:
getDesiredFormat in interface ITextureUnitState

setNumMipmaps

public void setNumMipmaps(int numMipmaps)
Sets how many mipmaps have been requested for the texture.

Specified by:
setNumMipmaps in interface ITextureUnitState

getNumMipmaps

public int getNumMipmaps()
Gets how many mipmaps have been requested for the texture.

Specified by:
getNumMipmaps in interface ITextureUnitState

setIsAlpha

public void setIsAlpha(boolean isAlpha)
Sets whether this texture is requested to be loaded as alpha if single channel

Specified by:
setIsAlpha in interface ITextureUnitState

getIsAlpha

public boolean getIsAlpha()
Gets whether this texture is requested to be loaded as alpha if single channel

Specified by:
getIsAlpha in interface ITextureUnitState

setHardwareGammaEnabled

public void setHardwareGammaEnabled(boolean enabled)
Specified by:
setHardwareGammaEnabled in interface ITextureUnitState

isHardwareGammaEnabled

public boolean isHardwareGammaEnabled()
Specified by:
isHardwareGammaEnabled in interface ITextureUnitState

getTextureCoordSet

public long getTextureCoordSet()
Gets the index of the set of texture co-ords this layer uses.

Specified by:
getTextureCoordSet in interface ITextureUnitState

setTextureCoordSet

public void setTextureCoordSet(long set)
Sets the index of the set of texture co-ords this layer uses.

Specified by:
setTextureCoordSet in interface ITextureUnitState

setTextureTransform

public void setTextureTransform(IMatrix4 xform)
Sets a matrix used to transform any texture coordinates on this layer.

Specified by:
setTextureTransform in interface ITextureUnitState

getTextureTransform

public IMatrix4 getTextureTransform()
Gets the current texture transformation matrix.

Specified by:
getTextureTransform in interface ITextureUnitState

setTextureScroll

public void setTextureScroll(float u,
                             float v)
Sets the translation offset of the texture, ie scrolls the texture.

Specified by:
setTextureScroll in interface ITextureUnitState

setTextureUScroll

public void setTextureUScroll(float value)
As setTextureScroll, but sets only U value.

Specified by:
setTextureUScroll in interface ITextureUnitState

getTextureUScroll

public float getTextureUScroll()
Specified by:
getTextureUScroll in interface ITextureUnitState

setTextureVScroll

public void setTextureVScroll(float value)
As setTextureScroll, but sets only V value.

Specified by:
setTextureVScroll in interface ITextureUnitState

getTextureVScroll

public float getTextureVScroll()
Specified by:
getTextureVScroll in interface ITextureUnitState

setTextureUScale

public void setTextureUScale(float value)
As setTextureScale, but sets only U value.

Specified by:
setTextureUScale in interface ITextureUnitState

getTextureUScale

public float getTextureUScale()
Specified by:
getTextureUScale in interface ITextureUnitState

setTextureVScale

public void setTextureVScale(float value)
As setTextureScale, but sets only V value.

Specified by:
setTextureVScale in interface ITextureUnitState

getTextureVScale

public float getTextureVScale()
Specified by:
getTextureVScale in interface ITextureUnitState

setTextureScale

public void setTextureScale(float uScale,
                            float vScale)
Sets the scaling factor applied to texture coordinates.

Specified by:
setTextureScale in interface ITextureUnitState

setTextureRotate

public void setTextureRotate(IRadian angle)
Sets the anticlockwise rotation factor applied to texture coordinates.

Specified by:
setTextureRotate in interface ITextureUnitState

getTextureRotate

public IRadian getTextureRotate()
Specified by:
getTextureRotate in interface ITextureUnitState

getTextureAddressingMode

public ITextureUnitState.IUVWAddressingMode getTextureAddressingMode()
Gets the texture addressing mode for a given coordinate, i.e. what happens at uv values above 1.0.

Specified by:
getTextureAddressingMode in interface ITextureUnitState

setTextureAddressingMode

public void setTextureAddressingMode(TextureUnitState.TextureAddressingMode tam)
Sets the texture addressing mode, i.e. what happens at uv values above 1.0.

Specified by:
setTextureAddressingMode in interface ITextureUnitState

setTextureAddressingMode

public void setTextureAddressingMode(TextureUnitState.TextureAddressingMode u,
                                     TextureUnitState.TextureAddressingMode v,
                                     TextureUnitState.TextureAddressingMode w)
Sets the texture addressing mode, i.e. what happens at uv values above 1.0.

Specified by:
setTextureAddressingMode in interface ITextureUnitState

setTextureAddressingMode

public void setTextureAddressingMode(ITextureUnitState.IUVWAddressingMode uvw)
Sets the texture addressing mode, i.e. what happens at uv values above 1.0.

Specified by:
setTextureAddressingMode in interface ITextureUnitState

setTextureBorderColour

public void setTextureBorderColour(IColourValue colour)
Sets the texture border colour.

Specified by:
setTextureBorderColour in interface ITextureUnitState

getTextureBorderColour

public IColourValue getTextureBorderColour()
Sets the texture border colour.

Specified by:
getTextureBorderColour in interface ITextureUnitState

setColourOperationEx

public void setColourOperationEx(LayerBlendOperationEx op,
                                 LayerBlendSource source1,
                                 LayerBlendSource source2,
                                 IColourValue arg1,
                                 IColourValue arg2,
                                 float manualBlend)
Setting advanced blending options.

Specified by:
setColourOperationEx in interface ITextureUnitState

setColourOperation

public void setColourOperation(LayerBlendOperation op)
Determines how this texture layer is combined with the one below it (or the diffuse colour of the geometry if this is layer 0).

Specified by:
setColourOperation in interface ITextureUnitState

setColourOpMultipassFallback

public void setColourOpMultipassFallback(SceneBlendFactor sourceFactor,
                                         SceneBlendFactor destFactor)
Sets the multipass fallback operation for this layer, if you used and not enough multitexturing hardware is available.

Specified by:
setColourOpMultipassFallback in interface ITextureUnitState

getColourBlendMode

public ILayerBlendModeEx getColourBlendMode()
Get multitexturing colour blending mode.

Specified by:
getColourBlendMode in interface ITextureUnitState

getAlphaBlendMode

public ILayerBlendModeEx getAlphaBlendMode()
Get multitexturing alpha blending mode.

Specified by:
getAlphaBlendMode in interface ITextureUnitState

getColourBlendFallbackSrc

public SceneBlendFactor getColourBlendFallbackSrc()
Get the multipass fallback for colour blending operation source factor.

Specified by:
getColourBlendFallbackSrc in interface ITextureUnitState

getColourBlendFallbackDest

public SceneBlendFactor getColourBlendFallbackDest()
Get the multipass fallback for colour blending operation destination factor.

Specified by:
getColourBlendFallbackDest in interface ITextureUnitState

setAlphaOperation

public void setAlphaOperation(LayerBlendOperationEx op,
                              LayerBlendSource source1,
                              LayerBlendSource source2,
                              float arg1,
                              float arg2,
                              float manualBlend)
Sets the alpha operation to be applied to this texture.

Specified by:
setAlphaOperation in interface ITextureUnitState

addEffect

public void addEffect(ITextureUnitState.ITextureEffect effect)
Generic method for setting up texture effects.

Specified by:
addEffect in interface ITextureUnitState

setEnvironmentMap

public void setEnvironmentMap(boolean enable,
                              TextureUnitState.EnvMapType envMapType)
Turns on/off texture coordinate effect that makes this layer an environment map.

Specified by:
setEnvironmentMap in interface ITextureUnitState

setScrollAnimation

public void setScrollAnimation(float uSpeed,
                               float vSpeed)
Sets up an animated scroll for the texture layer.

Specified by:
setScrollAnimation in interface ITextureUnitState

setRotateAnimation

public void setRotateAnimation(float speed)
Sets up an animated texture rotation for this layer.

Specified by:
setRotateAnimation in interface ITextureUnitState

setTransformAnimation

public void setTransformAnimation(TextureUnitState.TextureTransformType ttype,
                                  WaveformType waveType,
                                  float base,
                                  float frequency,
                                  float phase,
                                  float amplitude)
Sets up a general time-relative texture modification effect.

Specified by:
setTransformAnimation in interface ITextureUnitState

setProjectiveTexturing

public void setProjectiveTexturing(boolean enabled,
                                   IFrustum projectionSettings)
Enables or disables projective texturing on this texture unit.

Specified by:
setProjectiveTexturing in interface ITextureUnitState

removeAllEffects

public void removeAllEffects()
Removes all effects applied to this texture layer.

Specified by:
removeAllEffects in interface ITextureUnitState

removeEffect

public void removeEffect(TextureUnitState.TextureEffectType type)
Removes a single effect applied to this texture layer.

Specified by:
removeEffect in interface ITextureUnitState

isBlank

public boolean isBlank()
Determines if this texture layer is currently blank.

Specified by:
isBlank in interface ITextureUnitState

setBlank

public void setBlank()
Sets this texture layer to be blank.

Specified by:
setBlank in interface ITextureUnitState

isTextureLoadFailing

public boolean isTextureLoadFailing()
Tests if the texture associated with this unit has failed to load.

Specified by:
isTextureLoadFailing in interface ITextureUnitState

retryTextureLoad

public void retryTextureLoad()
Tells the unit to retry loading the texture if it had failed to load.

Specified by:
retryTextureLoad in interface ITextureUnitState

getEffects

public ITextureUnitState.IEffectMap getEffects()
Specified by:
getEffects in interface ITextureUnitState

getAnimationDuration

public float getAnimationDuration()
Specified by:
getAnimationDuration in interface ITextureUnitState

setTextureFiltering

public void setTextureFiltering(TextureFilterOptions filterType)
Set the texture filtering for this unit, using the simplified interface.

Specified by:
setTextureFiltering in interface ITextureUnitState

setTextureFiltering

public void setTextureFiltering(FilterType ftype,
                                FilterOptions opts)
Set a single filtering option on this texture unit. ftype The filtering type to set opts The filtering option to set

Specified by:
setTextureFiltering in interface ITextureUnitState

setTextureFiltering

public void setTextureFiltering(FilterOptions minFilter,
                                FilterOptions magFilter,
                                FilterOptions mipFilter)
Set a the detailed filtering options on this texture unit. minFilter The filtering to use when reducing the size of the texture. Can be FO_POINT, FO_LINEAR or FO_ANISOTROPIC magFilter The filtering to use when increasing the size of the texture Can be FO_POINT, FO_LINEAR or FO_ANISOTROPIC mipFilter The filtering to use between mip levels Can be FO_NONE (turns off mipmapping), FO_POINT or FO_LINEAR (trilinear filtering)

Specified by:
setTextureFiltering in interface ITextureUnitState

getTextureFiltering

public FilterOptions getTextureFiltering(FilterType ftpye)
Specified by:
getTextureFiltering in interface ITextureUnitState

setTextureAnisotropy

public void setTextureAnisotropy(long maxAniso)
Sets the anisotropy level to be used for this texture level.

Specified by:
setTextureAnisotropy in interface ITextureUnitState

getTextureAnisotropy

public long getTextureAnisotropy()
Specified by:
getTextureAnisotropy in interface ITextureUnitState

setTextureMipmapBias

public void setTextureMipmapBias(float bias)
Sets the bias value applied to the mipmap calculation.

Specified by:
setTextureMipmapBias in interface ITextureUnitState

getTextureMipmapBias

public float getTextureMipmapBias()
Gets the bias value applied to the mipmap calculation.

Specified by:
getTextureMipmapBias in interface ITextureUnitState

getParent

public IPass getParent()
Specified by:
getParent in interface ITextureUnitState

_prepare

public void _prepare()
Internal method for preparing this object for load, as part of

Specified by:
_prepare in interface ITextureUnitState

_unprepare

public void _unprepare()
Internal method for undoing the preparation this object as part of Material::unprepare

Specified by:
_unprepare in interface ITextureUnitState

_load

public void _load()
Internal method for loading this object as part of

Specified by:
_load in interface ITextureUnitState

_unload

public void _unload()
Internal method for unloading this object as part of

Specified by:
_unload in interface ITextureUnitState

hasViewRelativeTextureCoordinateGeneration

public boolean hasViewRelativeTextureCoordinateGeneration()
Specified by:
hasViewRelativeTextureCoordinateGeneration in interface ITextureUnitState

isLoaded

public boolean isLoaded()
Specified by:
isLoaded in interface ITextureUnitState

_notifyNeedsRecompile

public void _notifyNeedsRecompile()
Tells the class that it needs recompilation.

Specified by:
_notifyNeedsRecompile in interface ITextureUnitState

setName

public void setName(java.lang.String name)
Set the name of the Unit State

Specified by:
setName in interface ITextureUnitState

getName

public java.lang.String getName()
Specified by:
getName in interface ITextureUnitState

setTextureNameAlias

public void setTextureNameAlias(java.lang.String name)
Set the alias name used for texture frame names

Specified by:
setTextureNameAlias in interface ITextureUnitState

getTextureNameAlias

public java.lang.String getTextureNameAlias()
gets the Name Alias of the Unit.

Specified by:
getTextureNameAlias in interface ITextureUnitState

applyTextureAliases

public boolean applyTextureAliases(IAliasTextureNamePairList aliasList,
                                   boolean apply)
Applies texture names to Unit State with matching texture name aliases. If no matching aliases are found then the TUS state does not change.

Specified by:
applyTextureAliases in interface ITextureUnitState

_notifyParent

public void _notifyParent(IPass parent)
Notify this object that its parent has changed

Specified by:
_notifyParent in interface ITextureUnitState

_getTexturePtr

public ITexturePtr _getTexturePtr()
Get the texture pointer for the current frame.

Specified by:
_getTexturePtr in interface ITextureUnitState

_getTexturePtr

public ITexturePtr _getTexturePtr(int frame)
Get the texture pointer for a given frame.

Specified by:
_getTexturePtr in interface ITextureUnitState

_setTexturePtr

public void _setTexturePtr(ITexturePtr texptr)
Set the texture pointer for the current frame (internal use only!).

Specified by:
_setTexturePtr in interface ITextureUnitState

_setTexturePtr

public void _setTexturePtr(ITexturePtr texptr,
                           int frame)
Set the texture pointer for a given frame (internal use only!).

Specified by:
_setTexturePtr in interface ITextureUnitState

_getAnimController

public void _getAnimController(IController<java.lang.Float> returnValue)
Gets the animation controller (as created because of setAnimatedTexture) if it exists.

Specified by:
_getAnimController in interface ITextureUnitState


Copyright © 2007 netAllied GmbH. All Rights Reserved.