com.jme3.texture
Class TextureArray

java.lang.Object
  extended by com.jme3.texture.Texture
      extended by com.jme3.texture.TextureArray
All Implemented Interfaces:
CloneableSmartAsset, Savable, java.lang.Cloneable

public class TextureArray
extends Texture

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
TextureArray()
          Construct a TextureArray warning, this feature is only supported on opengl 3.0 version.
TextureArray(java.util.List<Image> images)
          Construct a TextureArray from the given list of images warning, this feature is only supported on opengl 3.0 version.
 
Method Summary
 Texture createSimpleClone()
           
 Texture createSimpleClone(Texture rVal)
          Retrieve a basic clone of this Texture (ie, clone everything but the image data, which is shared)
 Texture.Type getType()
           
 Texture.WrapMode 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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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

public TextureArray(java.util.List<Image> images)
Construct a TextureArray from the given list of images 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)

Parameters:
images -
Method Detail

createSimpleClone

public Texture createSimpleClone()
Specified by:
createSimpleClone in class Texture

createSimpleClone

public Texture createSimpleClone(Texture rVal)
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 class Texture
Returns:
Texture

getType

public Texture.Type getType()
Specified by:
getType in class Texture

getWrap

public Texture.WrapMode getWrap(Texture.WrapAxis axis)
Description copied from class: Texture
getWrap returns the wrap mode for a given coordinate axis on this texture.

Specified by:
getWrap in class Texture
Parameters:
axis - the axis to return for
Returns:
the wrap mode of the texture.

setWrap

public void setWrap(Texture.WrapAxis axis,
                    Texture.WrapMode mode)
Description copied from class: Texture
setWrap sets the wrap mode of this texture for a particular axis.

Specified by:
setWrap in class Texture
Parameters:
axis - the texture axis to define a wrapmode on.
mode - the wrap mode for the given axis of the texture.

setWrap

public void setWrap(Texture.WrapMode mode)
Description copied from class: Texture
setWrap sets the wrap mode of this texture for all axis.

Specified by:
setWrap in class Texture
Parameters:
mode - the wrap mode for the given axis of the texture.