Class FacedMultiCubemapData

java.lang.Object
gaiasky.util.gdx.model.gltf.scene3d.utils.FacedMultiCubemapData
All Implemented Interfaces:
com.badlogic.gdx.graphics.CubemapData

public class FacedMultiCubemapData extends Object implements com.badlogic.gdx.graphics.CubemapData
  • Field Details

    • data

      protected final com.badlogic.gdx.graphics.TextureData[] data
  • Constructor Details

    • FacedMultiCubemapData

      public FacedMultiCubemapData(com.badlogic.gdx.files.FileHandle[] files, int levels)
      Construct Cubemap data for MipMap cubemap.
      Parameters:
      files - texture files in following order : level 0 (positive X, negative X, positive Y, negative Y, positive Z, negative Z) level 1 (positive X, negative X, positive Y, negative Y, positive Z, negative Z) and so on. Where level 0 is the biggest texture. Expected levels x 6 files.
      levels - mipmap levels
    • FacedMultiCubemapData

      public FacedMultiCubemapData(com.badlogic.gdx.graphics.Pixmap[] pixmaps, int levels)
  • Method Details

    • isManaged

      public boolean isManaged()
      Specified by:
      isManaged in interface com.badlogic.gdx.graphics.CubemapData
    • isComplete

      public boolean isComplete()
      Returns:
      True if all sides of this cubemap are set, false otherwise.
    • getTextureData

      public com.badlogic.gdx.graphics.TextureData getTextureData(com.badlogic.gdx.graphics.Cubemap.CubemapSide side)
      Returns:
      The TextureData for the specified side, can be null if the cubemap is incomplete.
    • getWidth

      public int getWidth()
      Specified by:
      getWidth in interface com.badlogic.gdx.graphics.CubemapData
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface com.badlogic.gdx.graphics.CubemapData
    • isPrepared

      public boolean isPrepared()
      Specified by:
      isPrepared in interface com.badlogic.gdx.graphics.CubemapData
    • prepare

      public void prepare()
      Specified by:
      prepare in interface com.badlogic.gdx.graphics.CubemapData
    • consumeCubemapData

      public void consumeCubemapData()
      Specified by:
      consumeCubemapData in interface com.badlogic.gdx.graphics.CubemapData