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.
    • Method Detail

      • isManaged

        public boolean isManaged()
        Specified by:
        isManaged in class GLTexture
        Returns:
        whether this texture is managed or not.
      • reload

        protected void reload()
        Specified by:
        reload in class GLTexture
      • getWidth

        public int getWidth()
        Specified by:
        getWidth in class GLTexture
        Returns:
        the width of the texture in pixels
      • getHeight

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

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

        public void dispose()
        Disposes all resources associated with the cubemap
        Specified by:
        dispose in interface Disposable
        Overrides:
        dispose in class GLTexture
      • clearAllCubemaps

        public static void clearAllCubemaps​(Application app)
        Clears all managed cubemaps. This is an internal method. Do not use it!
      • invalidateAllCubemaps

        public static void invalidateAllCubemaps​(Application app)
        Invalidate all managed cubemaps. This is an internal method. Do not use it!
      • setAssetManager

        public static void setAssetManager​(AssetManager manager)
        Sets the AssetManager. When the context is lost, cubemaps managed by the asset manager are reloaded by the manager on a separate thread (provided that a suitable AssetLoader is registered with the manager). Cubemaps not managed by the AssetManager are reloaded via the usual means on the rendering thread.
        Parameters:
        manager - the asset manager.
      • getManagedStatus

        public static java.lang.String getManagedStatus()
      • getNumManagedCubemaps

        public static int getNumManagedCubemaps()
        Returns:
        the number of managed cubemaps currently loaded