Interface PFNKTXITERCBI

All Superinterfaces:
org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
All Known Implementing Classes:
PFNKTXITERCB
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface PFNKTXITERCBI extends org.lwjgl.system.CallbackI

Type


 KTX_error_code (*invoke(int, int, int, int, int, long, long, long)) (
     int miplevel,
     int face,
     int width,
     int height,
     int depth,
     ktx_uint64_t faceLodSize,
     void *pixels,
     void *userdata
 )
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

    org.lwjgl.system.Pointer.Default
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.lwjgl.system.libffi.FFICIF
     

    Fields inherited from interface org.lwjgl.system.Pointer

    BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    callback(long ret, long args)
     
    default org.lwjgl.system.libffi.FFICIF
     
    int
    invoke(int miplevel, int face, int width, int height, int depth, long faceLodSize, long pixels, long userdata)
    Signature of function called by the ktxTexture_Iterate* functions to receive image data.

    Methods inherited from interface org.lwjgl.system.CallbackI

    address
  • Field Details

    • CIF

      static final org.lwjgl.system.libffi.FFICIF CIF
  • Method Details

    • getCallInterface

      default org.lwjgl.system.libffi.FFICIF getCallInterface()
      Specified by:
      getCallInterface in interface org.lwjgl.system.CallbackI
    • callback

      default void callback(long ret, long args)
      Specified by:
      callback in interface org.lwjgl.system.CallbackI
    • invoke

      int invoke(int miplevel, int face, int width, int height, int depth, long faceLodSize, long pixels, long userdata)
      Signature of function called by the ktxTexture_Iterate* functions to receive image data.

      The function parameters are used to pass values which change for each image. Obtain values which are uniform across all images from the ktxTexture object.

      Parameters:
      miplevel - MIP level from 0 to the max level which is dependent on the texture size
      face - usually 0; for cube maps, one of the 6 cube faces in the order +X, -X, +Y, -Y, +Z, -Z, 0 to 5
      width - width of the image
      height - height of the image or, for 1D textures textures, 1
      depth - depth of the image or, for 1D & 2D textures, 1
      faceLodSize - number of bytes of data pointed at by pixels
      pixels - pointer to the image data
      userdata - pointer for the application to pass data to and from the callback function