Package org.lwjgl.bgfx
Class BGFXCallbackVtbl
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.bgfx.BGFXCallbackVtbl
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class BGFXCallbackVtbl extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Callback virtual table.Member documentation
fatal
– the fatal error callbacktrace_vargs
– the debug message callbackprofiler_begin
– the profiler begin callbackprofiler_begin_literal
– the profiler begin literal callbackprofiler_end
– the profiler end callbackcache_read_size
– the cache read size callbackcache_read
– the cache read callbackcache_write
– the cache write callbackscreen_shot
– the screenshot callbackcapture_begin
– the capture begin callbackcapture_end
– the capture end callbackcapture_frame
– the capture framecallback
Layout
struct bgfx_callback_vtbl_t { void (*
fatal
) (bgfx_callback_interface_t *_this, char const *_filePath, uint16_t _line, bgfx_fatal_t _code, char const *_str); void (*trace_vargs
) (bgfx_callback_interface_t *_this, char const *_filePath, uint16_t _line, char const *_format, va_list _argList); void (*profiler_begin
) (bgfx_callback_interface_t *_this, char const *_name, uint32_t _abgr, char const *_filePath, uint16_t _line); void (*profiler_begin_literal
) (bgfx_callback_interface_t *_this, char const *_name, uint32_t _abgr, char const *_filePath, uint16_t _line); void (*profiler_end
) (bgfx_callback_interface_t *_this); uint32_t (*cache_read_size
) (bgfx_callback_interface_t *_this, uint64_t _id); bool (*cache_read
) (bgfx_callback_interface_t *_this, uint64_t _id, void *_data, uint32_t _size); void (*cache_write
) (bgfx_callback_interface_t *_this, uint64_t _id, void const *_data, uint32_t _size); void (*screen_shot
) (bgfx_callback_interface_t *_this, char const *_filePath, uint32_t _width, uint32_t _height, uint32_t _pitch, void const *_data, uint32_t _size, bool _yflip); void (*capture_begin
) (bgfx_callback_interface_t *_this, uint32_t _width, uint32_t _height, uint32_t _pitch, bgfx_texture_format_t _format, bool _yflip); void (*capture_end
) (bgfx_callback_interface_t *_this); void (*capture_frame
) (bgfx_callback_interface_t *_this, void const *_data, uint32_t _size); }
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
CACHE_READ
CACHE_READ_SIZE
CACHE_WRITE
CAPTURE_BEGIN
CAPTURE_END
CAPTURE_FRAME
FATAL
PROFILER_BEGIN
PROFILER_BEGIN_LITERAL
PROFILER_END
SCREEN_SHOTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
TRACE_VARGS
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description BGFXCallbackVtbl(java.nio.ByteBuffer container)
Creates aBGFXCallbackVtbl
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BGFXCacheReadCallback
cache_read()
Returns the value of thecache_read
field.BGFXCallbackVtbl
cache_read(BGFXCacheReadCallbackI value)
Sets the specified value to thecache_read
field.BGFXCacheReadSizeCallback
cache_read_size()
Returns the value of thecache_read_size
field.BGFXCallbackVtbl
cache_read_size(BGFXCacheReadSizeCallbackI value)
Sets the specified value to thecache_read_size
field.BGFXCacheWriteCallback
cache_write()
Returns the value of thecache_write
field.BGFXCallbackVtbl
cache_write(BGFXCacheWriteCallbackI value)
Sets the specified value to thecache_write
field.static BGFXCallbackVtbl
calloc()
Returns a newBGFXCallbackVtbl
instance allocated withmemCalloc
.static BGFXCallbackVtbl
callocStack()
Returns a newBGFXCallbackVtbl
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static BGFXCallbackVtbl
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newBGFXCallbackVtbl
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.BGFXCaptureBeginCallback
capture_begin()
Returns the value of thecapture_begin
field.BGFXCallbackVtbl
capture_begin(BGFXCaptureBeginCallbackI value)
Sets the specified value to thecapture_begin
field.BGFXCaptureEndCallback
capture_end()
Returns the value of thecapture_end
field.BGFXCallbackVtbl
capture_end(BGFXCaptureEndCallbackI value)
Sets the specified value to thecapture_end
field.BGFXCaptureFrameCallback
capture_frame()
Returns the value of thecapture_frame
field.BGFXCallbackVtbl
capture_frame(BGFXCaptureFrameCallbackI value)
Sets the specified value to thecapture_frame
field.static BGFXCallbackVtbl
create()
Returns a newBGFXCallbackVtbl
instance allocated withBufferUtils
.static BGFXCallbackVtbl
create(long address)
Returns a newBGFXCallbackVtbl
instance for the specified memory address.static BGFXCallbackVtbl
createSafe(long address)
BGFXFatalCallback
fatal()
Returns the value of thefatal
field.BGFXCallbackVtbl
fatal(BGFXFatalCallbackI value)
Sets the specified value to thefatal
field.static BGFXCallbackVtbl
malloc()
Returns a newBGFXCallbackVtbl
instance allocated withmemAlloc
.static BGFXCallbackVtbl
mallocStack()
Returns a newBGFXCallbackVtbl
instance allocated on the thread-localMemoryStack
.static BGFXCallbackVtbl
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newBGFXCallbackVtbl
instance allocated on the specifiedMemoryStack
.static BGFXCacheReadCallback
ncache_read(long struct)
Unsafe version ofcache_read()
.static void
ncache_read(long struct, BGFXCacheReadCallbackI value)
Unsafe version ofcache_read
.static BGFXCacheReadSizeCallback
ncache_read_size(long struct)
Unsafe version ofcache_read_size()
.static void
ncache_read_size(long struct, BGFXCacheReadSizeCallbackI value)
Unsafe version ofcache_read_size
.static BGFXCacheWriteCallback
ncache_write(long struct)
Unsafe version ofcache_write()
.static void
ncache_write(long struct, BGFXCacheWriteCallbackI value)
Unsafe version ofcache_write
.static BGFXCaptureBeginCallback
ncapture_begin(long struct)
Unsafe version ofcapture_begin()
.static void
ncapture_begin(long struct, BGFXCaptureBeginCallbackI value)
Unsafe version ofcapture_begin
.static BGFXCaptureEndCallback
ncapture_end(long struct)
Unsafe version ofcapture_end()
.static void
ncapture_end(long struct, BGFXCaptureEndCallbackI value)
Unsafe version ofcapture_end
.static BGFXCaptureFrameCallback
ncapture_frame(long struct)
Unsafe version ofcapture_frame()
.static void
ncapture_frame(long struct, BGFXCaptureFrameCallbackI value)
Unsafe version ofcapture_frame
.static BGFXFatalCallback
nfatal(long struct)
Unsafe version offatal()
.static void
nfatal(long struct, BGFXFatalCallbackI value)
Unsafe version offatal
.static BGFXProfilerBegin
nprofiler_begin(long struct)
Unsafe version ofprofiler_begin()
.static void
nprofiler_begin(long struct, BGFXProfilerBeginI value)
Unsafe version ofprofiler_begin
.static BGFXProfilerBeginLiteral
nprofiler_begin_literal(long struct)
Unsafe version ofprofiler_begin_literal()
.static void
nprofiler_begin_literal(long struct, BGFXProfilerBeginLiteralI value)
Unsafe version ofprofiler_begin_literal
.static BGFXProfilerEnd
nprofiler_end(long struct)
Unsafe version ofprofiler_end()
.static void
nprofiler_end(long struct, BGFXProfilerEndI value)
Unsafe version ofprofiler_end
.static BGFXScreenShotCallback
nscreen_shot(long struct)
Unsafe version ofscreen_shot()
.static void
nscreen_shot(long struct, BGFXScreenShotCallbackI value)
Unsafe version ofscreen_shot
.static BGFXTraceVarArgsCallback
ntrace_vargs(long struct)
Unsafe version oftrace_vargs()
.static void
ntrace_vargs(long struct, BGFXTraceVarArgsCallbackI value)
Unsafe version oftrace_vargs
.BGFXProfilerBegin
profiler_begin()
Returns the value of theprofiler_begin
field.BGFXCallbackVtbl
profiler_begin(BGFXProfilerBeginI value)
Sets the specified value to theprofiler_begin
field.BGFXProfilerBeginLiteral
profiler_begin_literal()
Returns the value of theprofiler_begin_literal
field.BGFXCallbackVtbl
profiler_begin_literal(BGFXProfilerBeginLiteralI value)
Sets the specified value to theprofiler_begin_literal
field.BGFXProfilerEnd
profiler_end()
Returns the value of theprofiler_end
field.BGFXCallbackVtbl
profiler_end(BGFXProfilerEndI value)
Sets the specified value to theprofiler_end
field.BGFXScreenShotCallback
screen_shot()
Returns the value of thescreen_shot
field.BGFXCallbackVtbl
screen_shot(BGFXScreenShotCallbackI value)
Sets the specified value to thescreen_shot
field.BGFXCallbackVtbl
set(BGFXCallbackVtbl src)
Copies the specified struct data to this struct.BGFXCallbackVtbl
set(BGFXFatalCallbackI fatal, BGFXTraceVarArgsCallbackI trace_vargs, BGFXProfilerBeginI profiler_begin, BGFXProfilerBeginLiteralI profiler_begin_literal, BGFXProfilerEndI profiler_end, BGFXCacheReadSizeCallbackI cache_read_size, BGFXCacheReadCallbackI cache_read, BGFXCacheWriteCallbackI cache_write, BGFXScreenShotCallbackI screen_shot, BGFXCaptureBeginCallbackI capture_begin, BGFXCaptureEndCallbackI capture_end, BGFXCaptureFrameCallbackI capture_frame)
Initializes this struct with the specified values.int
sizeof()
BGFXTraceVarArgsCallback
trace_vargs()
Returns the value of thetrace_vargs
field.BGFXCallbackVtbl
trace_vargs(BGFXTraceVarArgsCallbackI value)
Sets the specified value to thetrace_vargs
field.static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(long array, int count)
Callsvalidate(long)
for each struct contained in the specified struct array.
-
-
-
Constructor Detail
-
BGFXCallbackVtbl
public BGFXCallbackVtbl(java.nio.ByteBuffer container)
Creates aBGFXCallbackVtbl
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
fatal
public BGFXFatalCallback fatal()
Returns the value of thefatal
field.
-
trace_vargs
public BGFXTraceVarArgsCallback trace_vargs()
Returns the value of thetrace_vargs
field.
-
profiler_begin
public BGFXProfilerBegin profiler_begin()
Returns the value of theprofiler_begin
field.
-
profiler_begin_literal
public BGFXProfilerBeginLiteral profiler_begin_literal()
Returns the value of theprofiler_begin_literal
field.
-
profiler_end
public BGFXProfilerEnd profiler_end()
Returns the value of theprofiler_end
field.
-
cache_read_size
public BGFXCacheReadSizeCallback cache_read_size()
Returns the value of thecache_read_size
field.
-
cache_read
public BGFXCacheReadCallback cache_read()
Returns the value of thecache_read
field.
-
cache_write
public BGFXCacheWriteCallback cache_write()
Returns the value of thecache_write
field.
-
screen_shot
public BGFXScreenShotCallback screen_shot()
Returns the value of thescreen_shot
field.
-
capture_begin
public BGFXCaptureBeginCallback capture_begin()
Returns the value of thecapture_begin
field.
-
capture_end
public BGFXCaptureEndCallback capture_end()
Returns the value of thecapture_end
field.
-
capture_frame
public BGFXCaptureFrameCallback capture_frame()
Returns the value of thecapture_frame
field.
-
fatal
public BGFXCallbackVtbl fatal(BGFXFatalCallbackI value)
Sets the specified value to thefatal
field.
-
trace_vargs
public BGFXCallbackVtbl trace_vargs(BGFXTraceVarArgsCallbackI value)
Sets the specified value to thetrace_vargs
field.
-
profiler_begin
public BGFXCallbackVtbl profiler_begin(BGFXProfilerBeginI value)
Sets the specified value to theprofiler_begin
field.
-
profiler_begin_literal
public BGFXCallbackVtbl profiler_begin_literal(BGFXProfilerBeginLiteralI value)
Sets the specified value to theprofiler_begin_literal
field.
-
profiler_end
public BGFXCallbackVtbl profiler_end(BGFXProfilerEndI value)
Sets the specified value to theprofiler_end
field.
-
cache_read_size
public BGFXCallbackVtbl cache_read_size(BGFXCacheReadSizeCallbackI value)
Sets the specified value to thecache_read_size
field.
-
cache_read
public BGFXCallbackVtbl cache_read(BGFXCacheReadCallbackI value)
Sets the specified value to thecache_read
field.
-
cache_write
public BGFXCallbackVtbl cache_write(BGFXCacheWriteCallbackI value)
Sets the specified value to thecache_write
field.
-
screen_shot
public BGFXCallbackVtbl screen_shot(BGFXScreenShotCallbackI value)
Sets the specified value to thescreen_shot
field.
-
capture_begin
public BGFXCallbackVtbl capture_begin(BGFXCaptureBeginCallbackI value)
Sets the specified value to thecapture_begin
field.
-
capture_end
public BGFXCallbackVtbl capture_end(BGFXCaptureEndCallbackI value)
Sets the specified value to thecapture_end
field.
-
capture_frame
public BGFXCallbackVtbl capture_frame(BGFXCaptureFrameCallbackI value)
Sets the specified value to thecapture_frame
field.
-
set
public BGFXCallbackVtbl set(BGFXFatalCallbackI fatal, BGFXTraceVarArgsCallbackI trace_vargs, BGFXProfilerBeginI profiler_begin, BGFXProfilerBeginLiteralI profiler_begin_literal, BGFXProfilerEndI profiler_end, BGFXCacheReadSizeCallbackI cache_read_size, BGFXCacheReadCallbackI cache_read, BGFXCacheWriteCallbackI cache_write, BGFXScreenShotCallbackI screen_shot, BGFXCaptureBeginCallbackI capture_begin, BGFXCaptureEndCallbackI capture_end, BGFXCaptureFrameCallbackI capture_frame)
Initializes this struct with the specified values.
-
set
public BGFXCallbackVtbl set(BGFXCallbackVtbl src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static BGFXCallbackVtbl malloc()
Returns a newBGFXCallbackVtbl
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static BGFXCallbackVtbl calloc()
Returns a newBGFXCallbackVtbl
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static BGFXCallbackVtbl create()
Returns a newBGFXCallbackVtbl
instance allocated withBufferUtils
.
-
create
public static BGFXCallbackVtbl create(long address)
Returns a newBGFXCallbackVtbl
instance for the specified memory address.
-
createSafe
@Nullable public static BGFXCallbackVtbl createSafe(long address)
-
mallocStack
public static BGFXCallbackVtbl mallocStack()
Returns a newBGFXCallbackVtbl
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static BGFXCallbackVtbl callocStack()
Returns a newBGFXCallbackVtbl
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static BGFXCallbackVtbl mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newBGFXCallbackVtbl
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static BGFXCallbackVtbl callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newBGFXCallbackVtbl
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
nfatal
public static BGFXFatalCallback nfatal(long struct)
Unsafe version offatal()
.
-
ntrace_vargs
public static BGFXTraceVarArgsCallback ntrace_vargs(long struct)
Unsafe version oftrace_vargs()
.
-
nprofiler_begin
public static BGFXProfilerBegin nprofiler_begin(long struct)
Unsafe version ofprofiler_begin()
.
-
nprofiler_begin_literal
public static BGFXProfilerBeginLiteral nprofiler_begin_literal(long struct)
Unsafe version ofprofiler_begin_literal()
.
-
nprofiler_end
public static BGFXProfilerEnd nprofiler_end(long struct)
Unsafe version ofprofiler_end()
.
-
ncache_read_size
public static BGFXCacheReadSizeCallback ncache_read_size(long struct)
Unsafe version ofcache_read_size()
.
-
ncache_read
public static BGFXCacheReadCallback ncache_read(long struct)
Unsafe version ofcache_read()
.
-
ncache_write
public static BGFXCacheWriteCallback ncache_write(long struct)
Unsafe version ofcache_write()
.
-
nscreen_shot
public static BGFXScreenShotCallback nscreen_shot(long struct)
Unsafe version ofscreen_shot()
.
-
ncapture_begin
public static BGFXCaptureBeginCallback ncapture_begin(long struct)
Unsafe version ofcapture_begin()
.
-
ncapture_end
public static BGFXCaptureEndCallback ncapture_end(long struct)
Unsafe version ofcapture_end()
.
-
ncapture_frame
public static BGFXCaptureFrameCallback ncapture_frame(long struct)
Unsafe version ofcapture_frame()
.
-
nfatal
public static void nfatal(long struct, BGFXFatalCallbackI value)
Unsafe version offatal
.
-
ntrace_vargs
public static void ntrace_vargs(long struct, BGFXTraceVarArgsCallbackI value)
Unsafe version oftrace_vargs
.
-
nprofiler_begin
public static void nprofiler_begin(long struct, BGFXProfilerBeginI value)
Unsafe version ofprofiler_begin
.
-
nprofiler_begin_literal
public static void nprofiler_begin_literal(long struct, BGFXProfilerBeginLiteralI value)
Unsafe version ofprofiler_begin_literal
.
-
nprofiler_end
public static void nprofiler_end(long struct, BGFXProfilerEndI value)
Unsafe version ofprofiler_end
.
-
ncache_read_size
public static void ncache_read_size(long struct, BGFXCacheReadSizeCallbackI value)
Unsafe version ofcache_read_size
.
-
ncache_read
public static void ncache_read(long struct, BGFXCacheReadCallbackI value)
Unsafe version ofcache_read
.
-
ncache_write
public static void ncache_write(long struct, BGFXCacheWriteCallbackI value)
Unsafe version ofcache_write
.
-
nscreen_shot
public static void nscreen_shot(long struct, BGFXScreenShotCallbackI value)
Unsafe version ofscreen_shot
.
-
ncapture_begin
public static void ncapture_begin(long struct, BGFXCaptureBeginCallbackI value)
Unsafe version ofcapture_begin
.
-
ncapture_end
public static void ncapture_end(long struct, BGFXCaptureEndCallbackI value)
Unsafe version ofcapture_end
.
-
ncapture_frame
public static void ncapture_frame(long struct, BGFXCaptureFrameCallbackI value)
Unsafe version ofcapture_frame
.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-
validate
public static void validate(long array, int count)
Callsvalidate(long)
for each struct contained in the specified struct array.- Parameters:
array
- the struct array to validatecount
- the number of structs inarray
-
-