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