|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITextureUnitState
| Nested Class Summary | |
|---|---|
static interface |
ITextureUnitState.IEffectMap
|
static interface |
ITextureUnitState.ITextureEffect
|
static interface |
ITextureUnitState.IUVWAddressingMode
|
| 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 |
deleteFrameTextureName(int frameNumber)
deletes a specific texture frame. |
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 interface org.xbig.base.INativeObject |
|---|
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Method Detail |
|---|
ITextureUnitState operatorAssignment(ITextureUnitState oth)
java.lang.String getTextureName()
void setTextureName(java.lang.String name,
TextureType ttype)
void setCubicTextureName(java.lang.String name,
boolean forUVW)
void setAnimatedTextureName(java.lang.String name,
long numFrames,
float duration)
void getTextureDimensions(Ipair<java.lang.Integer,java.lang.Integer> returnValue,
long frame)
void setCurrentFrame(long frameNumber)
long getCurrentFrame()
java.lang.String getFrameTextureName(long frameNumber)
void setFrameTextureName(java.lang.String name,
long frameNumber)
void addFrameTextureName(java.lang.String name)
void deleteFrameTextureName(int frameNumber)
long getNumFrames()
void setBindingType(TextureUnitState.BindingType bt)
TextureUnitState.BindingType getBindingType()
void setContentType(TextureUnitState.ContentType ct)
TextureUnitState.ContentType getContentType()
boolean isCubic()
boolean is3D()
TextureType getTextureType()
void setDesiredFormat(PixelFormat desiredFormat)
PixelFormat getDesiredFormat()
void setNumMipmaps(int numMipmaps)
int getNumMipmaps()
void setIsAlpha(boolean isAlpha)
boolean getIsAlpha()
void setHardwareGammaEnabled(boolean enabled)
boolean isHardwareGammaEnabled()
long getTextureCoordSet()
void setTextureCoordSet(long set)
void setTextureTransform(IMatrix4 xform)
IMatrix4 getTextureTransform()
void setTextureScroll(float u,
float v)
void setTextureUScroll(float value)
float getTextureUScroll()
void setTextureVScroll(float value)
float getTextureVScroll()
void setTextureUScale(float value)
float getTextureUScale()
void setTextureVScale(float value)
float getTextureVScale()
void setTextureScale(float uScale,
float vScale)
void setTextureRotate(IRadian angle)
IRadian getTextureRotate()
ITextureUnitState.IUVWAddressingMode getTextureAddressingMode()
void setTextureAddressingMode(TextureUnitState.TextureAddressingMode tam)
void setTextureAddressingMode(TextureUnitState.TextureAddressingMode u,
TextureUnitState.TextureAddressingMode v,
TextureUnitState.TextureAddressingMode w)
void setTextureAddressingMode(ITextureUnitState.IUVWAddressingMode uvw)
void setTextureBorderColour(IColourValue colour)
IColourValue getTextureBorderColour()
void setColourOperationEx(LayerBlendOperationEx op,
LayerBlendSource source1,
LayerBlendSource source2,
IColourValue arg1,
IColourValue arg2,
float manualBlend)
void setColourOperation(LayerBlendOperation op)
void setColourOpMultipassFallback(SceneBlendFactor sourceFactor,
SceneBlendFactor destFactor)
ILayerBlendModeEx getColourBlendMode()
ILayerBlendModeEx getAlphaBlendMode()
SceneBlendFactor getColourBlendFallbackSrc()
SceneBlendFactor getColourBlendFallbackDest()
void setAlphaOperation(LayerBlendOperationEx op,
LayerBlendSource source1,
LayerBlendSource source2,
float arg1,
float arg2,
float manualBlend)
void addEffect(ITextureUnitState.ITextureEffect effect)
void setEnvironmentMap(boolean enable,
TextureUnitState.EnvMapType envMapType)
void setScrollAnimation(float uSpeed,
float vSpeed)
void setRotateAnimation(float speed)
void setTransformAnimation(TextureUnitState.TextureTransformType ttype,
WaveformType waveType,
float base,
float frequency,
float phase,
float amplitude)
void setProjectiveTexturing(boolean enabled,
IFrustum projectionSettings)
void removeAllEffects()
void removeEffect(TextureUnitState.TextureEffectType type)
boolean isBlank()
void setBlank()
boolean isTextureLoadFailing()
void retryTextureLoad()
ITextureUnitState.IEffectMap getEffects()
float getAnimationDuration()
void setTextureFiltering(TextureFilterOptions filterType)
void setTextureFiltering(FilterType ftype,
FilterOptions opts)
void setTextureFiltering(FilterOptions minFilter,
FilterOptions magFilter,
FilterOptions mipFilter)
FilterOptions getTextureFiltering(FilterType ftpye)
void setTextureAnisotropy(long maxAniso)
long getTextureAnisotropy()
void setTextureMipmapBias(float bias)
float getTextureMipmapBias()
IPass getParent()
void _prepare()
void _unprepare()
void _load()
void _unload()
boolean hasViewRelativeTextureCoordinateGeneration()
boolean isLoaded()
void _notifyNeedsRecompile()
void setName(java.lang.String name)
java.lang.String getName()
void setTextureNameAlias(java.lang.String name)
java.lang.String getTextureNameAlias()
boolean applyTextureAliases(IAliasTextureNamePairList aliasList,
boolean apply)
void _notifyParent(IPass parent)
ITexturePtr _getTexturePtr()
ITexturePtr _getTexturePtr(int frame)
void _setTexturePtr(ITexturePtr texptr)
void _setTexturePtr(ITexturePtr texptr,
int frame)
void _getAnimController(IController<java.lang.Float> returnValue)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||