Package org.lwjgl.util.ktx
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.
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
FieldsFields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Method Summary
Modifier and TypeMethodDescriptiondefault voidcallback(long ret, long args) default org.lwjgl.system.libffi.FFICIFintinvoke(int miplevel, int face, int width, int height, int depth, long faceLodSize, long pixels, long userdata) Signature of function called by thektxTexture_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:
getCallInterfacein interfaceorg.lwjgl.system.CallbackI
-
callback
default void callback(long ret, long args) - Specified by:
callbackin interfaceorg.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 thektxTexture_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
ktxTextureobject.- Parameters:
miplevel- MIP level from 0 to the max level which is dependent on the texture sizeface- usually 0; for cube maps, one of the 6 cube faces in the order +X, -X, +Y, -Y, +Z, -Z, 0 to 5width- width of the imageheight- height of the image or, for 1D textures textures, 1depth- depth of the image or, for 1D & 2D textures, 1faceLodSize- number of bytes of data pointed at bypixelspixels- pointer to the image datauserdata- pointer for the application to pass data to and from the callback function
-