Class TextureArray

java.lang.Object
com.jme3.texture.Texture
com.jme3.texture.TextureArray
All Implemented Interfaces:
CloneableSmartAsset, Savable, 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)
  • 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

      public TextureArray(List<Image> images)
      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

      public Texture createSimpleClone()
      Specified by:
      createSimpleClone in class Texture
      Returns:
      a new 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
      Parameters:
      rVal - storage for the clone (not null, modified)
      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 apply the wrap mode to.
      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.