Class GlTexture

java.lang.Object
com.mojang.blaze3d.textures.GpuTexture
com.mojang.blaze3d.opengl.GlTexture
All Implemented Interfaces:
AutoCloseable

public class GlTexture extends GpuTexture
  • Field Details

    • EMPTY

      private static final int EMPTY
      See Also:
    • id

      protected final int id
    • firstFboId

      private int firstFboId
    • firstFboDepthId

      private int firstFboDepthId
    • fboCache

      private @Nullable it.unimi.dsi.fastutil.ints.Int2IntMap fboCache
    • closed

      protected boolean closed
    • views

      private int views
    • external

      protected final boolean external
  • Constructor Details

    • GlTexture

      protected GlTexture(@com.mojang.blaze3d.textures.GpuTexture.Usage int pUsage, String pLabel, TextureFormat pFormat, int pWidth, int pHeight, int pDepthOrLayers, int pMipLevels, int pId)
    • GlTexture

      protected GlTexture(@com.mojang.blaze3d.textures.GpuTexture.Usage int pUsage, String pLabel, TextureFormat pFormat, int pWidth, int pHeight, int pDepthOrLayers, int pMipLevels, int pId, boolean external)
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in class GpuTexture
    • destroyImmediately

      private void destroyImmediately()
    • isClosed

      public boolean isClosed()
      Specified by:
      isClosed in class GpuTexture
    • getFbo

      public int getFbo(DirectStateAccess pDirectStateAccess, @Nullable GpuTexture pTexture)
    • createFbo

      @Deprecated private int createFbo(DirectStateAccess pDirectStateAccess, int pId)
      Deprecated.
      use overload that takes useStencil
    • createFbo

      private int createFbo(DirectStateAccess pDirectStateAccess, int pId, boolean useStencil)
    • glId

      public int glId()
    • addViews

      public void addViews()
    • removeViews

      public void removeViews()