Package com.jme3.texture
Class TextureArray
java.lang.Object
com.jme3.texture.Texture
com.jme3.texture.TextureArray
- All Implemented Interfaces:
CloneableSmartAsset,Savable,Cloneable
This class implements a Texture array
warning, this feature is only supported on opengl 3.0 version.
To check if a hardware supports TextureArray check :
renderManager.getRenderer().getCaps().contains(Caps.TextureArray)
-
Nested Class Summary
Nested classes/interfaces inherited from class com.jme3.texture.Texture
Texture.MagFilter, Texture.MinFilter, Texture.ShadowCompareMode, Texture.Type, Texture.WrapAxis, Texture.WrapMode -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a TextureArray warning, this feature is only supported on opengl 3.0 version.TextureArray(List<Image> images) Construct a TextureArray from the given list of images. -
Method Summary
Modifier and TypeMethodDescriptioncreateSimpleClone(Texture rVal) Retrieve a basic clone of this Texture (ie, clone everything but the image data, which is shared)getType()getWrap(Texture.WrapAxis axis) getWrapreturns the wrap mode for a given coordinate axis on this texture.voidsetWrap(Texture.WrapAxis axis, Texture.WrapMode mode) setWrapsets the wrap mode of this texture for a particular axis.voidsetWrap(Texture.WrapMode mode) setWrapsets the wrap mode of this texture for all axis.Methods inherited from class com.jme3.texture.Texture
clone, equals, getAnisotropicFilter, getImage, getKey, getMagFilter, getMinFilter, getName, getShadowCompareMode, hashCode, read, setAnisotropicFilter, setImage, setKey, setMagFilter, setMinFilter, setName, setShadowCompareMode, toString, write
-
Constructor Details
-
TextureArray
public TextureArray()Construct a TextureArray warning, this feature is only supported on opengl 3.0 version. To check if a hardware supports TextureArray check : renderManager.getRenderer().getCaps().contains(Caps.TextureArray) -
TextureArray
Construct a TextureArray from the given list of images. To check if a hardware supports TextureArray check : renderManager.getRenderer().getCaps().contains(Caps.TextureArray)- Parameters:
images- the images to use (not null)
-
-
Method Details
-
createSimpleClone
- Specified by:
createSimpleClonein classTexture- Returns:
- a new Texture
-
createSimpleClone
Description copied from class:TextureRetrieve a basic clone of this Texture (ie, clone everything but the image data, which is shared)- Overrides:
createSimpleClonein classTexture- Parameters:
rVal- storage for the clone (not null, modified)- Returns:
- Texture
-
getType
-
getWrap
Description copied from class:TexturegetWrapreturns the wrap mode for a given coordinate axis on this texture. -
setWrap
Description copied from class:TexturesetWrapsets the wrap mode of this texture for a particular axis. -
setWrap
Description copied from class:TexturesetWrapsets the wrap mode of this texture for all axis.
-