Package org.lwjgl.stb
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 interface org.lwjgl.system.Pointer
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 @Nullable 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.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
-