Class ktxTexture.Buffer

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

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

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new ktxTexture.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 ktxTexture.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

      @NativeType("class_id") public int classId()
      Returns:
      the value of the classId field.
    • vtbl

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

      @NativeType("struct ktxTexture_vvtbl *") public long vvtbl()
      Returns:
      the value of the vvtbl field.
    • _protected

      @NativeType("struct ktxTexture_protected *") public PointerBuffer _protected(int capacity)
      Returns:
      a PointerBuffer view of the data pointed to by the _protected field.
    • isArray

      @NativeType("ktx_bool_t") public boolean isArray()
      Returns:
      the value of the isArray field.
    • isCubemap

      @NativeType("ktx_bool_t") public boolean isCubemap()
      Returns:
      the value of the isCubemap field.
    • isCompressed

      @NativeType("ktx_bool_t") public boolean isCompressed()
      Returns:
      the value of the isCompressed field.
    • generateMipmaps

      @NativeType("ktx_bool_t") public boolean generateMipmaps()
      Returns:
      the value of the generateMipmaps field.
    • baseWidth

      @NativeType("ktx_uint32_t") public int baseWidth()
      Returns:
      the value of the baseWidth field.
    • baseHeight

      @NativeType("ktx_uint32_t") public int baseHeight()
      Returns:
      the value of the baseHeight field.
    • baseDepth

      @NativeType("ktx_uint32_t") public int baseDepth()
      Returns:
      the value of the baseDepth field.
    • numDimensions

      @NativeType("ktx_uint32_t") public int numDimensions()
      Returns:
      the value of the numDimensions field.
    • numLevels

      @NativeType("ktx_uint32_t") public int numLevels()
      Returns:
      the value of the numLevels field.
    • numLayers

      @NativeType("ktx_uint32_t") public int numLayers()
      Returns:
      the value of the numLayers field.
    • numFaces

      @NativeType("ktx_uint32_t") public int numFaces()
      Returns:
      the value of the numFaces field.
    • orientation

      @NativeType("struct ktxOrientation") public ktxOrientation orientation()
      Returns:
      a ktxOrientation view of the orientation field.
    • kvDataHead

      @NativeType("ktxHashList") public long kvDataHead()
      Returns:
      the value of the kvDataHead field.
    • kvDataLen

      @NativeType("ktx_uint32_t") public int kvDataLen()
      Returns:
      the value of the kvDataLen field.
    • kvData

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

      @NativeType("ktx_size_t") public long dataSize()
      Returns:
      the value of the dataSize field.
    • pData

      @NativeType("ktx_uint8_t *") public ByteBuffer pData()
      Returns:
      a ByteBuffer view of the data pointed to by the pData field.