Class ktxTexture1

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class ktxTexture1 extends Struct<ktxTexture1> implements NativeResource

 struct ktxTexture1 {
     class_id classId;
     {@link ktxTexture_vtbl struct ktxTexture_vtbl} * vtbl;
     struct ktxTexture_vvtbl * vvtbl;
     struct ktxTexture_protected * _protected;
     ktx_bool_t isArray;
     ktx_bool_t isCubemap;
     ktx_bool_t isCompressed;
     ktx_bool_t generateMipmaps;
     ktx_uint32_t baseWidth;
     ktx_uint32_t baseHeight;
     ktx_uint32_t baseDepth;
     ktx_uint32_t numDimensions;
     ktx_uint32_t numLevels;
     ktx_uint32_t numLayers;
     ktx_uint32_t numFaces;
     {@link ktxOrientation struct ktxOrientation} orientation;
     ktxHashList kvDataHead;
     ktx_uint32_t kvDataLen;
     ktx_uint8_t * kvData;
     ktx_size_t dataSize;
     ktx_uint8_t * pData;
     ktx_uint32_t glFormat;
     ktx_uint32_t glInternalformat;
     ktx_uint32_t glBaseInternalformat;
     ktx_uint32_t glType;
     struct ktxTexture1_private * _private;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • CLASSID

      public static final int CLASSID
      The struct member offsets.
    • VTBL

      public static final int VTBL
      The struct member offsets.
    • VVTBL

      public static final int VVTBL
      The struct member offsets.
    • _PROTECTED

      public static final int _PROTECTED
      The struct member offsets.
    • ISARRAY

      public static final int ISARRAY
      The struct member offsets.
    • ISCUBEMAP

      public static final int ISCUBEMAP
      The struct member offsets.
    • ISCOMPRESSED

      public static final int ISCOMPRESSED
      The struct member offsets.
    • GENERATEMIPMAPS

      public static final int GENERATEMIPMAPS
      The struct member offsets.
    • BASEWIDTH

      public static final int BASEWIDTH
      The struct member offsets.
    • BASEHEIGHT

      public static final int BASEHEIGHT
      The struct member offsets.
    • BASEDEPTH

      public static final int BASEDEPTH
      The struct member offsets.
    • NUMDIMENSIONS

      public static final int NUMDIMENSIONS
      The struct member offsets.
    • NUMLEVELS

      public static final int NUMLEVELS
      The struct member offsets.
    • NUMLAYERS

      public static final int NUMLAYERS
      The struct member offsets.
    • NUMFACES

      public static final int NUMFACES
      The struct member offsets.
    • ORIENTATION

      public static final int ORIENTATION
      The struct member offsets.
    • KVDATAHEAD

      public static final int KVDATAHEAD
      The struct member offsets.
    • KVDATALEN

      public static final int KVDATALEN
      The struct member offsets.
    • KVDATA

      public static final int KVDATA
      The struct member offsets.
    • DATASIZE

      public static final int DATASIZE
      The struct member offsets.
    • PDATA

      public static final int PDATA
      The struct member offsets.
    • GLFORMAT

      public static final int GLFORMAT
      The struct member offsets.
    • GLINTERNALFORMAT

      public static final int GLINTERNALFORMAT
      The struct member offsets.
    • GLBASEINTERNALFORMAT

      public static final int GLBASEINTERNALFORMAT
      The struct member offsets.
    • GLTYPE

      public static final int GLTYPE
      The struct member offsets.
    • _PRIVATE

      public static final int _PRIVATE
      The struct member offsets.
  • Constructor Details

    • ktxTexture1

      public ktxTexture1(ByteBuffer container)
      Creates a ktxTexture1 instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

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

  • Method Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<ktxTexture1>
    • 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.
    • malloc

      public static ktxTexture1 malloc()
      Returns a new ktxTexture1 instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static ktxTexture1 calloc()
      Returns a new ktxTexture1 instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static ktxTexture1 create()
      Returns a new ktxTexture1 instance allocated with BufferUtils.
    • create

      public static ktxTexture1 create(long address)
      Returns a new ktxTexture1 instance for the specified memory address.
    • createSafe

      public static @Nullable ktxTexture1 createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static ktxTexture1.Buffer malloc(int capacity)
      Returns a new ktxTexture1.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static ktxTexture1.Buffer calloc(int capacity)
      Returns a new ktxTexture1.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static ktxTexture1.Buffer create(int capacity)
      Returns a new ktxTexture1.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static ktxTexture1.Buffer create(long address, int capacity)
      Create a ktxTexture1.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable ktxTexture1.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static ktxTexture1 malloc(MemoryStack stack)
      Returns a new ktxTexture1 instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static ktxTexture1 calloc(MemoryStack stack)
      Returns a new ktxTexture1 instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static ktxTexture1.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new ktxTexture1.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static ktxTexture1.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new ktxTexture1.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nclassId

      public static int nclassId(long struct)
      Unsafe version of classId().
    • nvtbl

      public static ktxTexture_vtbl nvtbl(long struct)
      Unsafe version of vtbl().
    • nvvtbl

      public static long nvvtbl(long struct)
      Unsafe version of vvtbl().
    • n_protected

      public static PointerBuffer n_protected(long struct, int capacity)
      Unsafe version of _protected.
    • nisArray

      public static boolean nisArray(long struct)
      Unsafe version of isArray().
    • nisCubemap

      public static boolean nisCubemap(long struct)
      Unsafe version of isCubemap().
    • nisCompressed

      public static boolean nisCompressed(long struct)
      Unsafe version of isCompressed().
    • ngenerateMipmaps

      public static boolean ngenerateMipmaps(long struct)
      Unsafe version of generateMipmaps().
    • nbaseWidth

      public static int nbaseWidth(long struct)
      Unsafe version of baseWidth().
    • nbaseHeight

      public static int nbaseHeight(long struct)
      Unsafe version of baseHeight().
    • nbaseDepth

      public static int nbaseDepth(long struct)
      Unsafe version of baseDepth().
    • nnumDimensions

      public static int nnumDimensions(long struct)
      Unsafe version of numDimensions().
    • nnumLevels

      public static int nnumLevels(long struct)
      Unsafe version of numLevels().
    • nnumLayers

      public static int nnumLayers(long struct)
      Unsafe version of numLayers().
    • nnumFaces

      public static int nnumFaces(long struct)
      Unsafe version of numFaces().
    • norientation

      public static ktxOrientation norientation(long struct)
      Unsafe version of orientation().
    • nkvDataHead

      public static long nkvDataHead(long struct)
      Unsafe version of kvDataHead().
    • nkvDataLen

      public static int nkvDataLen(long struct)
      Unsafe version of kvDataLen().
    • nkvData

      public static @Nullable ByteBuffer nkvData(long struct)
      Unsafe version of kvData.
    • ndataSize

      public static long ndataSize(long struct)
      Unsafe version of dataSize().
    • npData

      public static ByteBuffer npData(long struct)
      Unsafe version of pData.
    • nglFormat

      public static int nglFormat(long struct)
      Unsafe version of glFormat().
    • nglInternalformat

      public static int nglInternalformat(long struct)
      Unsafe version of glInternalformat().
    • nglBaseInternalformat

      public static int nglBaseInternalformat(long struct)
      Unsafe version of glBaseInternalformat().
    • nglType

      public static int nglType(long struct)
      Unsafe version of glType().
    • n_private

      public static PointerBuffer n_private(long struct, int capacity)