LWJGL note: The bgfx build bundled with LWJGL will never invoke the fatal, trace_vargs, profiler_begin,
profiler_begin_literal, profiler_end callbacks, so they may be NULL. When using a custom build with BGFX_CONFIG_DEBUG
(Debug configuration) and/or BGFX_CONFIG_PROFILER (--with-profiler build option), the corresponding callbacks should not be
NULL.
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);
}
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | CACHE_READ
The struct member offsets. |
| public static final int | CACHE_READ_SIZE
The struct member offsets. |
| public static final int | CACHE_WRITE
The struct member offsets. |
| public static final int | CAPTURE_BEGIN
The struct member offsets. |
| public static final int | CAPTURE_END
The struct member offsets. |
| public static final int | CAPTURE_FRAME
The struct member offsets. |
| public static final int | FATAL
The struct member offsets. |
| public static final int | PROFILER_BEGIN
The struct member offsets. |
| public static final int | PROFILER_BEGIN_LITERAL
The struct member offsets. |
| public static final int | PROFILER_END
The struct member offsets. |
| public static final int | SCREEN_SHOT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | TRACE_VARGS
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | BGFXCallbackVtbl(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public BGFXCacheReadCallback | |
| public BGFXCallbackVtbl | |
| public BGFXCacheReadSizeCallback | |
| public BGFXCallbackVtbl | cache_read_size(BGFXCacheReadSizeCallbackI value)
Sets the specified value to the |
| public BGFXCacheWriteCallback | |
| public BGFXCallbackVtbl | |
| public static BGFXCallbackVtbl | |
| public static BGFXCallbackVtbl | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static BGFXCallbackVtbl | |
| public static BGFXCallbackVtbl | |
| public BGFXCaptureBeginCallback | |
| public BGFXCallbackVtbl | |
| public BGFXCaptureEndCallback | |
| public BGFXCallbackVtbl | |
| public BGFXCaptureFrameCallback | |
| public BGFXCallbackVtbl | |
| protected BGFXCallbackVtbl | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static BGFXCallbackVtbl | |
| public static BGFXCallbackVtbl | |
| public static BGFXCallbackVtbl | |
| public BGFXFatalCallback | |
| public BGFXCallbackVtbl | |
| public static BGFXCallbackVtbl | |
| public static BGFXCallbackVtbl | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static BGFXCallbackVtbl | |
| public static BGFXCallbackVtbl | |
| public static BGFXCacheReadCallback | |
| public static void | |
| public static BGFXCacheReadSizeCallback | |
| public static void | |
| public static BGFXCacheWriteCallback | |
| public static void | |
| public static BGFXCaptureBeginCallback | |
| public static void | |
| public static BGFXCaptureEndCallback | |
| public static void | |
| public static BGFXCaptureFrameCallback | |
| public static void | |
| public static BGFXFatalCallback | |
| public static void | |
| public static BGFXProfilerBegin | |
| public static void | |
| public static BGFXProfilerBeginLiteral | |
| public static void | nprofiler_begin_literal(long struct, BGFXProfilerBeginLiteralI value)
Unsafe version of |
| public static BGFXProfilerEnd | |
| public static void | |
| public static BGFXScreenShotCallback | |
| public static void | |
| public static BGFXTraceVarArgsCallback | |
| public static void | |
| public BGFXProfilerBegin | |
| public BGFXCallbackVtbl | |
| public BGFXProfilerBeginLiteral | |
| public BGFXCallbackVtbl | profiler_begin_literal(BGFXProfilerBeginLiteralI value)
Sets the specified value to the |
| public BGFXProfilerEnd | |
| public BGFXCallbackVtbl | |
| public BGFXScreenShotCallback | |
| public BGFXCallbackVtbl | |
| 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. |
| public BGFXCallbackVtbl | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public BGFXTraceVarArgsCallback | |
| public BGFXCallbackVtbl | |
| public static void |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| CACHE_READ | back to summary |
|---|---|
| public static final int CACHE_READ The struct member offsets. | |
| CACHE_READ_SIZE | back to summary |
|---|---|
| public static final int CACHE_READ_SIZE The struct member offsets. | |
| CACHE_WRITE | back to summary |
|---|---|
| public static final int CACHE_WRITE The struct member offsets. | |
| CAPTURE_BEGIN | back to summary |
|---|---|
| public static final int CAPTURE_BEGIN The struct member offsets. | |
| CAPTURE_END | back to summary |
|---|---|
| public static final int CAPTURE_END The struct member offsets. | |
| CAPTURE_FRAME | back to summary |
|---|---|
| public static final int CAPTURE_FRAME The struct member offsets. | |
| FATAL | back to summary |
|---|---|
| public static final int FATAL The struct member offsets. | |
| PROFILER_BEGIN | back to summary |
|---|---|
| public static final int PROFILER_BEGIN The struct member offsets. | |
| PROFILER_BEGIN_LITERAL | back to summary |
|---|---|
| public static final int PROFILER_BEGIN_LITERAL The struct member offsets. | |
| PROFILER_END | back to summary |
|---|---|
| public static final int PROFILER_END The struct member offsets. | |
| SCREEN_SHOT | back to summary |
|---|---|
| public static final int SCREEN_SHOT The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| TRACE_VARGS | back to summary |
|---|---|
| public static final int TRACE_VARGS The struct member offsets. | |
| BGFXCallbackVtbl | back to summary |
|---|---|
| protected BGFXCallbackVtbl(long address, ByteBuffer container) | |
| BGFXCallbackVtbl | back to summary |
|---|---|
| public BGFXCallbackVtbl(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| cache_read | back to summary |
|---|---|
| public BGFXCacheReadCallback cache_read() the cache read callback
| |
| cache_read | back to summary |
|---|---|
| public BGFXCallbackVtbl cache_read(BGFXCacheReadCallbackI value) Sets the specified value to the | |
| cache_read_size | back to summary |
|---|---|
| public BGFXCacheReadSizeCallback cache_read_size() the cache read size callback
| |
| cache_read_size | back to summary |
|---|---|
| public BGFXCallbackVtbl cache_read_size(BGFXCacheReadSizeCallbackI value) Sets the specified value to the | |
| cache_write | back to summary |
|---|---|
| public BGFXCacheWriteCallback cache_write() the cache write callback
| |
| cache_write | back to summary |
|---|---|
| public BGFXCallbackVtbl cache_write(BGFXCacheWriteCallbackI value) Sets the specified value to the | |
| calloc | back to summary |
|---|---|
| public static BGFXCallbackVtbl calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static BGFXCallbackVtbl calloc(MemoryStack stack) Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static BGFXCallbackVtbl callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static BGFXCallbackVtbl callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| capture_begin | back to summary |
|---|---|
| public BGFXCaptureBeginCallback capture_begin() the capture begin callback
| |
| capture_begin | back to summary |
|---|---|
| public BGFXCallbackVtbl capture_begin(BGFXCaptureBeginCallbackI value) Sets the specified value to the | |
| capture_end | back to summary |
|---|---|
| public BGFXCaptureEndCallback capture_end() the capture end callback
| |
| capture_end | back to summary |
|---|---|
| public BGFXCallbackVtbl capture_end(BGFXCaptureEndCallbackI value) Sets the specified value to the | |
| capture_frame | back to summary |
|---|---|
| public BGFXCaptureFrameCallback capture_frame() the capture framecallback
| |
| capture_frame | back to summary |
|---|---|
| public BGFXCallbackVtbl capture_frame(BGFXCaptureFrameCallbackI value) Sets the specified value to the | |
| create | back to summary |
|---|---|
| protected BGFXCallbackVtbl create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static BGFXCallbackVtbl create() Returns a new | |
| create | back to summary |
|---|---|
| public static BGFXCallbackVtbl create(long address) Returns a new | |
| createSafe | back to summary |
|---|---|
| public static BGFXCallbackVtbl createSafe(long address) Like
| |
| fatal | back to summary |
|---|---|
| public BGFXFatalCallback fatal() the fatal error callback
| |
| fatal | back to summary |
|---|---|
| public BGFXCallbackVtbl fatal(BGFXFatalCallbackI value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static BGFXCallbackVtbl malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static BGFXCallbackVtbl malloc(MemoryStack stack) Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static BGFXCallbackVtbl mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static BGFXCallbackVtbl mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| ncache_read | back to summary |
|---|---|
| public static BGFXCacheReadCallback ncache_read(long struct) Unsafe version of | |
| ncache_read | back to summary |
|---|---|
| public static void ncache_read(long struct, BGFXCacheReadCallbackI value) Unsafe version of | |
| ncache_read_size | back to summary |
|---|---|
| public static BGFXCacheReadSizeCallback ncache_read_size(long struct) Unsafe version of | |
| ncache_read_size | back to summary |
|---|---|
| public static void ncache_read_size(long struct, BGFXCacheReadSizeCallbackI value) Unsafe version of | |
| ncache_write | back to summary |
|---|---|
| public static BGFXCacheWriteCallback ncache_write(long struct) Unsafe version of | |
| ncache_write | back to summary |
|---|---|
| public static void ncache_write(long struct, BGFXCacheWriteCallbackI value) Unsafe version of | |
| ncapture_begin | back to summary |
|---|---|
| public static BGFXCaptureBeginCallback ncapture_begin(long struct) Unsafe version of | |
| ncapture_begin | back to summary |
|---|---|
| public static void ncapture_begin(long struct, BGFXCaptureBeginCallbackI value) Unsafe version of | |
| ncapture_end | back to summary |
|---|---|
| public static BGFXCaptureEndCallback ncapture_end(long struct) Unsafe version of | |
| ncapture_end | back to summary |
|---|---|
| public static void ncapture_end(long struct, BGFXCaptureEndCallbackI value) Unsafe version of | |
| ncapture_frame | back to summary |
|---|---|
| public static BGFXCaptureFrameCallback ncapture_frame(long struct) Unsafe version of | |
| ncapture_frame | back to summary |
|---|---|
| public static void ncapture_frame(long struct, BGFXCaptureFrameCallbackI value) Unsafe version of | |
| nfatal | back to summary |
|---|---|
| public static BGFXFatalCallback nfatal(long struct) Unsafe version of
| |
| nfatal | back to summary |
|---|---|
| public static void nfatal(long struct, BGFXFatalCallbackI value) Unsafe version of | |
| nprofiler_begin | back to summary |
|---|---|
| public static BGFXProfilerBegin nprofiler_begin(long struct) Unsafe version of
| |
| nprofiler_begin | back to summary |
|---|---|
| public static void nprofiler_begin(long struct, BGFXProfilerBeginI value) Unsafe version of | |
| nprofiler_begin_literal | back to summary |
|---|---|
| public static BGFXProfilerBeginLiteral nprofiler_begin_literal(long struct) Unsafe version of
| |
| nprofiler_begin_literal | back to summary |
|---|---|
| public static void nprofiler_begin_literal(long struct, BGFXProfilerBeginLiteralI value) Unsafe version of | |
| nprofiler_end | back to summary |
|---|---|
| public static BGFXProfilerEnd nprofiler_end(long struct) Unsafe version of
| |
| nprofiler_end | back to summary |
|---|---|
| public static void nprofiler_end(long struct, BGFXProfilerEndI value) Unsafe version of | |
| nscreen_shot | back to summary |
|---|---|
| public static BGFXScreenShotCallback nscreen_shot(long struct) Unsafe version of | |
| nscreen_shot | back to summary |
|---|---|
| public static void nscreen_shot(long struct, BGFXScreenShotCallbackI value) Unsafe version of | |
| ntrace_vargs | back to summary |
|---|---|
| public static BGFXTraceVarArgsCallback ntrace_vargs(long struct) Unsafe version of
| |
| ntrace_vargs | back to summary |
|---|---|
| public static void ntrace_vargs(long struct, BGFXTraceVarArgsCallbackI value) Unsafe version of | |
| profiler_begin | back to summary |
|---|---|
| public BGFXProfilerBegin profiler_begin() the profiler begin callback
| |
| profiler_begin | back to summary |
|---|---|
| public BGFXCallbackVtbl profiler_begin(BGFXProfilerBeginI value) Sets the specified value to the | |
| profiler_begin_literal | back to summary |
|---|---|
| public BGFXProfilerBeginLiteral profiler_begin_literal() the profiler begin literal callback
| |
| profiler_begin_literal | back to summary |
|---|---|
| public BGFXCallbackVtbl profiler_begin_literal(BGFXProfilerBeginLiteralI value) Sets the specified value to the | |
| profiler_end | back to summary |
|---|---|
| public BGFXProfilerEnd profiler_end() the profiler end callback
| |
| profiler_end | back to summary |
|---|---|
| public BGFXCallbackVtbl profiler_end(BGFXProfilerEndI value) Sets the specified value to the | |
| screen_shot | back to summary |
|---|---|
| public BGFXScreenShotCallback screen_shot() the screenshot callback
| |
| screen_shot | back to summary |
|---|---|
| public BGFXCallbackVtbl screen_shot(BGFXScreenShotCallbackI value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| 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 | back to summary |
|---|---|
| public BGFXCallbackVtbl set(BGFXCallbackVtbl src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| trace_vargs | back to summary |
|---|---|
| public BGFXTraceVarArgsCallback trace_vargs() the debug message callback
| |
| trace_vargs | back to summary |
|---|---|
| public BGFXCallbackVtbl trace_vargs(BGFXTraceVarArgsCallbackI value) Sets the specified value to the | |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |