Class TextureArray

java.lang.Object
dev.pfaff.altargui.texture.TextureArray
All Implemented Interfaces:
AutoCloseable

public final class TextureArray extends Object implements AutoCloseable
  • Field Details

    • handle

      public final int handle
  • Constructor Details

    • TextureArray

      public TextureArray()
  • Method Details

    • bound

      public InfallibleAutoClosable bound()
    • allocate

      public void allocate(int width, int height, int layerCount, TextureOptions options)
      Allocates the texture. It must already be bound().
    • startUploading

      public void startUploading()
    • upload

      public void upload(int layer, int xOffset, int yOffset, int width, int height, dev.pfaff.glass.opengl.enums.GLPixelFormat format, dev.pfaff.glass.opengl.enums.GLPixelType channelType, MemorySegment pixels)
      Remember to call startUploading().
    • uploadFromPixelUnpackBuffer

      public void uploadFromPixelUnpackBuffer(int layer, int xOffset, int yOffset, int width, int height, dev.pfaff.glass.opengl.enums.GLPixelFormat format, dev.pfaff.glass.opengl.enums.GLPixelType channelType)
      Remember to call startUploading().
    • upload

      public void upload(int layer, int width, int height, dev.pfaff.glass.opengl.enums.GLPixelFormat format, dev.pfaff.glass.opengl.enums.GLPixelType channelType, MemorySegment pixels)
      Remember to call startUploading().
    • uploadFull

      public void uploadFull(dev.pfaff.glass.opengl.enums.GLPixelFormat format, MemorySegment pixels)
      Remember to call startUploading().
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • target

      public dev.pfaff.glass.opengl.enums.GLTextureTarget target()