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
ConstructorDescriptionConstruct 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) getWrap
returns the wrap mode for a given coordinate axis on this texture.void
setWrap
(Texture.WrapAxis axis, Texture.WrapMode mode) setWrap
sets the wrap mode of this texture for a particular axis.void
setWrap
(Texture.WrapMode mode) setWrap
sets 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:
createSimpleClone
in classTexture
- Returns:
- a new Texture
-
createSimpleClone
Description copied from class:Texture
Retrieve a basic clone of this Texture (ie, clone everything but the image data, which is shared)- Overrides:
createSimpleClone
in classTexture
- Parameters:
rVal
- storage for the clone (not null, modified)- Returns:
- Texture
-
getType
-
getWrap
Description copied from class:Texture
getWrap
returns the wrap mode for a given coordinate axis on this texture. -
setWrap
Description copied from class:Texture
setWrap
sets the wrap mode of this texture for a particular axis. -
setWrap
Description copied from class:Texture
setWrap
sets the wrap mode of this texture for all axis.
-