Class STBIWriteCallback
java.lang.Object
org.lwjgl.system.Callback
org.lwjgl.stb.STBIWriteCallback
- All Implemented Interfaces:
AutoCloseable, STBIWriteCallbackI, CallbackI, NativeResource, Pointer
Callback function:
stbi_write_func *-
Nested Class Summary
Nested classes/interfaces inherited from class Callback
Callback.DescriptorNested classes/interfaces inherited from interface Pointer
Pointer.Default -
Field Summary
Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZEFields inherited from interface STBIWriteCallbackI
DESCRIPTOR -
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 @Nullable STBIWriteCallbackcreateSafe(long functionPointer) static ByteBuffergetData(long data, int size) Converts the specifiedSTBIWriteCallbackarguments to a ByteBuffer.Methods inherited from interface NativeResource
closeMethods inherited from interface STBIWriteCallbackI
callback, getDescriptor, 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
-