Class ktxTexture_vtbl

All Implemented Interfaces:
Pointer

public class ktxTexture_vtbl extends Struct<ktxTexture_vtbl>

 struct ktxTexture_vtbl {
     PFNKTEXDESTROY Destroy;
     PFNKTEXGETIMAGEOFFSET GetImageOffset;
     PFNKTEXGETDATASIZEUNCOMPRESSED GetDataSizeUncompressed;
     PFNKTEXGETIMAGESIZE GetImageSize;
     PFNKTEXGETLEVELSIZE GetLevelSize;
     PFNKTEXITERATELEVELS IterateLevels;
     PFNKTEXITERATELOADLEVELFACES IterateLoadLevelFaces;
     PFNKTEXNEEDSTRANSCODING NeedsTranscoding;
     PFNKTEXLOADIMAGEDATA LoadImageData;
     PFNKTEXSETIMAGEFROMMEMORY SetImageFromMemory;
     PFNKTEXSETIMAGEFROMSTDIOSTREAM SetImageFromStdioStream;
     PFNKTEXWRITETOSTDIOSTREAM WriteToStdioStream;
     PFNKTEXWRITETONAMEDFILE WriteToNamedFile;
     PFNKTEXWRITETOMEMORY WriteToMemory;
     PFNKTEXWRITETOSTREAM WriteToStream;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int DESTROY
      The struct member offsets.
    • GETIMAGEOFFSET

      public static final int GETIMAGEOFFSET
      The struct member offsets.
    • GETDATASIZEUNCOMPRESSED

      public static final int GETDATASIZEUNCOMPRESSED
      The struct member offsets.
    • GETIMAGESIZE

      public static final int GETIMAGESIZE
      The struct member offsets.
    • GETLEVELSIZE

      public static final int GETLEVELSIZE
      The struct member offsets.
    • ITERATELEVELS

      public static final int ITERATELEVELS
      The struct member offsets.
    • ITERATELOADLEVELFACES

      public static final int ITERATELOADLEVELFACES
      The struct member offsets.
    • NEEDSTRANSCODING

      public static final int NEEDSTRANSCODING
      The struct member offsets.
    • LOADIMAGEDATA

      public static final int LOADIMAGEDATA
      The struct member offsets.
    • SETIMAGEFROMMEMORY

      public static final int SETIMAGEFROMMEMORY
      The struct member offsets.
    • SETIMAGEFROMSTDIOSTREAM

      public static final int SETIMAGEFROMSTDIOSTREAM
      The struct member offsets.
    • WRITETOSTDIOSTREAM

      public static final int WRITETOSTDIOSTREAM
      The struct member offsets.
    • WRITETONAMEDFILE

      public static final int WRITETONAMEDFILE
      The struct member offsets.
    • WRITETOMEMORY

      public static final int WRITETOMEMORY
      The struct member offsets.
    • WRITETOSTREAM

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

    • ktxTexture_vtbl

      public ktxTexture_vtbl(ByteBuffer container)
      Creates a ktxTexture_vtbl 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<ktxTexture_vtbl>
    • Destroy

      public long Destroy()
      Returns:
      the value of the Destroy field.
    • GetImageOffset

      public long GetImageOffset()
      Returns:
      the value of the GetImageOffset field.
    • GetDataSizeUncompressed

      public long GetDataSizeUncompressed()
      Returns:
      the value of the GetDataSizeUncompressed field.
    • GetImageSize

      public long GetImageSize()
      Returns:
      the value of the GetImageSize field.
    • GetLevelSize

      public long GetLevelSize()
      Returns:
      the value of the GetLevelSize field.
    • IterateLevels

      public long IterateLevels()
      Returns:
      the value of the IterateLevels field.
    • IterateLoadLevelFaces

      public long IterateLoadLevelFaces()
      Returns:
      the value of the IterateLoadLevelFaces field.
    • NeedsTranscoding

      public long NeedsTranscoding()
      Returns:
      the value of the NeedsTranscoding field.
    • LoadImageData

      public long LoadImageData()
      Returns:
      the value of the LoadImageData field.
    • SetImageFromMemory

      public long SetImageFromMemory()
      Returns:
      the value of the SetImageFromMemory field.
    • SetImageFromStdioStream

      public long SetImageFromStdioStream()
      Returns:
      the value of the SetImageFromStdioStream field.
    • WriteToStdioStream

      public long WriteToStdioStream()
      Returns:
      the value of the WriteToStdioStream field.
    • WriteToNamedFile

      public long WriteToNamedFile()
      Returns:
      the value of the WriteToNamedFile field.
    • WriteToMemory

      public long WriteToMemory()
      Returns:
      the value of the WriteToMemory field.
    • WriteToStream

      public long WriteToStream()
      Returns:
      the value of the WriteToStream field.
    • create

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

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

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

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

      public static long nDestroy(long struct)
      Unsafe version of Destroy().
    • nGetImageOffset

      public static long nGetImageOffset(long struct)
      Unsafe version of GetImageOffset().
    • nGetDataSizeUncompressed

      public static long nGetDataSizeUncompressed(long struct)
      Unsafe version of GetDataSizeUncompressed().
    • nGetImageSize

      public static long nGetImageSize(long struct)
      Unsafe version of GetImageSize().
    • nGetLevelSize

      public static long nGetLevelSize(long struct)
      Unsafe version of GetLevelSize().
    • nIterateLevels

      public static long nIterateLevels(long struct)
      Unsafe version of IterateLevels().
    • nIterateLoadLevelFaces

      public static long nIterateLoadLevelFaces(long struct)
      Unsafe version of IterateLoadLevelFaces().
    • nNeedsTranscoding

      public static long nNeedsTranscoding(long struct)
      Unsafe version of NeedsTranscoding().
    • nLoadImageData

      public static long nLoadImageData(long struct)
      Unsafe version of LoadImageData().
    • nSetImageFromMemory

      public static long nSetImageFromMemory(long struct)
      Unsafe version of SetImageFromMemory().
    • nSetImageFromStdioStream

      public static long nSetImageFromStdioStream(long struct)
      Unsafe version of SetImageFromStdioStream().
    • nWriteToStdioStream

      public static long nWriteToStdioStream(long struct)
      Unsafe version of WriteToStdioStream().
    • nWriteToNamedFile

      public static long nWriteToNamedFile(long struct)
      Unsafe version of WriteToNamedFile().
    • nWriteToMemory

      public static long nWriteToMemory(long struct)
      Unsafe version of WriteToMemory().
    • nWriteToStream

      public static long nWriteToStream(long struct)
      Unsafe version of WriteToStream().