Class ktxTexture1.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<ktxTexture1>, NativeResource, Pointer
Enclosing class:
ktxTexture1

public static class ktxTexture1.Buffer extends StructBuffer<ktxTexture1,ktxTexture1.Buffer> implements NativeResource
An array of ktxTexture1 structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new ktxTexture1.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by ktxTexture1.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • classId

      public int classId()
      Returns:
      the value of the classId field.
    • vtbl

      public ktxTexture_vtbl vtbl()
      Returns:
      a ktxTexture_vtbl view of the struct pointed to by the vtbl field.
    • vvtbl

      public long vvtbl()
      Returns:
      the value of the vvtbl field.
    • _protected

      public PointerBuffer _protected(int capacity)
      Returns:
      a PointerBuffer view of the data pointed to by the _protected field.
    • isArray

      public boolean isArray()
      Returns:
      the value of the isArray field.
    • isCubemap

      public boolean isCubemap()
      Returns:
      the value of the isCubemap field.
    • isCompressed

      public boolean isCompressed()
      Returns:
      the value of the isCompressed field.
    • generateMipmaps

      public boolean generateMipmaps()
      Returns:
      the value of the generateMipmaps field.
    • baseWidth

      public int baseWidth()
      Returns:
      the value of the baseWidth field.
    • baseHeight

      public int baseHeight()
      Returns:
      the value of the baseHeight field.
    • baseDepth

      public int baseDepth()
      Returns:
      the value of the baseDepth field.
    • numDimensions

      public int numDimensions()
      Returns:
      the value of the numDimensions field.
    • numLevels

      public int numLevels()
      Returns:
      the value of the numLevels field.
    • numLayers

      public int numLayers()
      Returns:
      the value of the numLayers field.
    • numFaces

      public int numFaces()
      Returns:
      the value of the numFaces field.
    • orientation

      public ktxOrientation orientation()
      Returns:
      a ktxOrientation view of the orientation field.
    • kvDataHead

      public long kvDataHead()
      Returns:
      the value of the kvDataHead field.
    • kvDataLen

      public int kvDataLen()
      Returns:
      the value of the kvDataLen field.
    • kvData

      public @Nullable ByteBuffer kvData()
      Returns:
      a ByteBuffer view of the data pointed to by the kvData field.
    • dataSize

      public long dataSize()
      Returns:
      the value of the dataSize field.
    • pData

      public ByteBuffer pData()
      Returns:
      a ByteBuffer view of the data pointed to by the pData field.
    • glFormat

      public int glFormat()
      Returns:
      the value of the glFormat field.
    • glInternalformat

      public int glInternalformat()
      Returns:
      the value of the glInternalformat field.
    • glBaseInternalformat

      public int glBaseInternalformat()
      Returns:
      the value of the glBaseInternalformat field.
    • glType

      public int glType()
      Returns:
      the value of the glType field.