Package arc.graphics

Class Cubemap

All Implemented Interfaces:
Disposable

public class Cubemap extends GLTexture
Wraps a standard OpenGL ES Cubemap. Must be disposed when it is no longer used.
  • Field Details

  • Constructor Details

    • Cubemap

      public Cubemap(CubemapData data)
      Construct a Cubemap based on the given CubemapData.
    • Cubemap

      public Cubemap(String base)
    • Cubemap

      public Cubemap(Fi positiveX, Fi negativeX, Fi positiveY, Fi negativeY, Fi positiveZ, Fi negativeZ)
      Construct a Cubemap with the specified texture files for the sides, does not generate mipmaps.
    • Cubemap

      public Cubemap(Fi positiveX, Fi negativeX, Fi positiveY, Fi negativeY, Fi positiveZ, Fi negativeZ, boolean useMipMaps)
      Construct a Cubemap with the specified texture files for the sides, optionally generating mipmaps.
    • Cubemap

      public Cubemap(Pixmap positiveX, Pixmap negativeX, Pixmap positiveY, Pixmap negativeY, Pixmap positiveZ, Pixmap negativeZ)
      Construct a Cubemap with the specified Pixmaps for the sides, does not generate mipmaps.
    • Cubemap

      public Cubemap(Pixmap positiveX, Pixmap negativeX, Pixmap positiveY, Pixmap negativeY, Pixmap positiveZ, Pixmap negativeZ, boolean useMipMaps)
      Construct a Cubemap with the specified Pixmaps for the sides, optionally generating mipmaps.
    • Cubemap

      public Cubemap(int width, int height, int depth)
      Construct a Cubemap with Pixmaps for each side of the specified size.
    • Cubemap

      public Cubemap(TextureData positiveX, TextureData negativeX, TextureData positiveY, TextureData negativeY, TextureData positiveZ, TextureData negativeZ)
      Construct a Cubemap with the specified TextureData's for the sides
  • Method Details

    • load

      public void load(CubemapData data)
      Sets the sides of this cubemap to the specified CubemapData.
    • getCubemapData

      public CubemapData getCubemapData()
    • getDepth

      public int getDepth()
      Specified by:
      getDepth in class GLTexture
      Returns:
      the depth of the texture in pixels