Package org.lwjgl.stb
Class STBIWriteCallback
java.lang.Object
org.lwjgl.system.Callback
org.lwjgl.stb.STBIWriteCallback
- All Implemented Interfaces:
AutoCloseable,STBIWriteCallbackI,org.lwjgl.system.CallbackI,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public abstract class STBIWriteCallback
extends org.lwjgl.system.Callback
implements STBIWriteCallbackI
Instances of this class may be used with the
STBImageWrite write_type_to_func functions.
Type
void (*STBIWriteCallbackI.invoke(long, long, int)) (
void *context,
void *data,
int size
)-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZEFields inherited from interface org.lwjgl.stb.STBIWriteCallbackI
CIF -
Method Summary
Modifier and TypeMethodDescriptionstatic STBIWriteCallbackcreate(long functionPointer) Creates aSTBIWriteCallbackinstance from the specified function pointer.static STBIWriteCallbackcreate(STBIWriteCallbackI instance) Creates aSTBIWriteCallbackinstance that delegates to the specifiedSTBIWriteCallbackIinstance.static STBIWriteCallbackcreateSafe(long functionPointer) static ByteBuffergetData(long data, int size) Converts the specifiedSTBIWriteCallbackarguments to a ByteBuffer.Methods inherited from class org.lwjgl.system.Callback
address, equals, free, free, get, getSafe, hashCode, toStringMethods inherited from interface org.lwjgl.system.CallbackI
addressMethods inherited from interface org.lwjgl.system.NativeResource
closeMethods inherited from interface org.lwjgl.stb.STBIWriteCallbackI
callback, getCallInterface, invoke
-
Method Details
-
create
Creates aSTBIWriteCallbackinstance from the specified function pointer.- Returns:
- the new
STBIWriteCallback
-
createSafe
-
create
Creates aSTBIWriteCallbackinstance that delegates to the specifiedSTBIWriteCallbackIinstance. -
getData
Converts the specifiedSTBIWriteCallbackarguments to a ByteBuffer.This method may only be used inside a STBIWriteCallback invocation.
- Parameters:
data- the STBIWriteCallbackdataargumentsize- the STBIWriteCallbacksizeargument- Returns:
- the data as a ByteBuffer
-