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
Callback function:
stbi_write_func *-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Callback
org.lwjgl.system.Callback.DescriptorNested 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 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 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 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
-