Class Texture2D

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

public class Texture2D extends Texture
  • Constructor Details

    • Texture2D

      public Texture2D()
      Creates a new two-dimensional texture with default attributes.
    • Texture2D

      public Texture2D(Image img)
      Creates a new two-dimensional texture using the given image.
      Parameters:
      img - The image to use.
    • Texture2D

      public Texture2D(int width, int height, Image.Format format)
      Creates a new two-dimensional texture for the purpose of offscreen rendering.
      Parameters:
      width - the desired width (in pixels)
      height - the desired height (in pixels)
      format - the desired format
      See Also:
    • Texture2D

      public Texture2D(int width, int height, int numSamples, Image.Format format)
      Creates a new two-dimensional texture for the purpose of offscreen rendering.
      Parameters:
      width - the desired width (in pixels)
      height - the desired height (in pixels)
      numSamples - the desired degree of multi-sampling (≥1)
      format - the desired format
      See Also:
  • Method Details