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
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
Pointer.Default
-
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
Fields inherited from interface org.lwjgl.stb.STBIWriteCallbackI
CIF
-
Method Summary
Modifier and TypeMethodDescriptionstatic STBIWriteCallback
create
(long functionPointer) Creates aSTBIWriteCallback
instance from the specified function pointer.static STBIWriteCallback
create
(STBIWriteCallbackI instance) Creates aSTBIWriteCallback
instance that delegates to the specifiedSTBIWriteCallbackI
instance.static STBIWriteCallback
createSafe
(long functionPointer) static ByteBuffer
getData
(long data, int size) Converts the specifiedSTBIWriteCallback
arguments to a ByteBuffer.Methods inherited from class org.lwjgl.system.Callback
address, equals, free, free, get, getSafe, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close
Methods inherited from interface org.lwjgl.stb.STBIWriteCallbackI
callback, getCallInterface, invoke
-
Method Details
-
create
Creates aSTBIWriteCallback
instance from the specified function pointer.- Returns:
- the new
STBIWriteCallback
-
createSafe
-
create
Creates aSTBIWriteCallback
instance that delegates to the specifiedSTBIWriteCallbackI
instance. -
getData
Converts the specifiedSTBIWriteCallback
arguments to a ByteBuffer.This method may only be used inside a STBIWriteCallback invocation.
- Parameters:
data
- the STBIWriteCallbackdata
argumentsize
- the STBIWriteCallbacksize
argument- Returns:
- the data as a ByteBuffer
-