public class BGFXCallbackVtbl
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
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
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 |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CACHE_READ
The struct member offsets.
|
static int |
CACHE_READ_SIZE
The struct member offsets.
|
static int |
CACHE_WRITE
The struct member offsets.
|
static int |
CAPTURE_BEGIN
The struct member offsets.
|
static int |
CAPTURE_END
The struct member offsets.
|
static int |
CAPTURE_FRAME
The struct member offsets.
|
static int |
FATAL
The struct member offsets.
|
static int |
PROFILER_BEGIN
The struct member offsets.
|
static int |
PROFILER_BEGIN_LITERAL
The struct member offsets.
|
static int |
PROFILER_END
The struct member offsets.
|
static int |
SCREEN_SHOT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TRACE_VARGS
The struct member offsets.
|
| Constructor and Description |
|---|
BGFXCallbackVtbl(java.nio.ByteBuffer container)
Creates a
BGFXCallbackVtbl instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
BGFXCacheReadSizeCallback |
cache_read_size()
Returns the value of the
cache_read_size field. |
BGFXCallbackVtbl |
cache_read_size(BGFXCacheReadSizeCallbackI value)
Sets the specified value to the
cache_read_size field. |
BGFXCacheReadCallback |
cache_read()
Returns the value of the
cache_read field. |
BGFXCallbackVtbl |
cache_read(BGFXCacheReadCallbackI value)
Sets the specified value to the
cache_read field. |
BGFXCacheWriteCallback |
cache_write()
Returns the value of the
cache_write field. |
BGFXCallbackVtbl |
cache_write(BGFXCacheWriteCallbackI value)
Sets the specified value to the
cache_write field. |
static BGFXCallbackVtbl |
calloc()
Returns a new
BGFXCallbackVtbl instance allocated with memCalloc. |
static BGFXCallbackVtbl |
callocStack()
Returns a new
BGFXCallbackVtbl instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static BGFXCallbackVtbl |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXCallbackVtbl instance allocated on the specified MemoryStack and initializes all its bits to zero. |
BGFXCaptureBeginCallback |
capture_begin()
Returns the value of the
capture_begin field. |
BGFXCallbackVtbl |
capture_begin(BGFXCaptureBeginCallbackI value)
Sets the specified value to the
capture_begin field. |
BGFXCaptureEndCallback |
capture_end()
Returns the value of the
capture_end field. |
BGFXCallbackVtbl |
capture_end(BGFXCaptureEndCallbackI value)
Sets the specified value to the
capture_end field. |
BGFXCaptureFrameCallback |
capture_frame()
Returns the value of the
capture_frame field. |
BGFXCallbackVtbl |
capture_frame(BGFXCaptureFrameCallbackI value)
Sets the specified value to the
capture_frame field. |
static BGFXCallbackVtbl |
create()
Returns a new
BGFXCallbackVtbl instance allocated with BufferUtils. |
static BGFXCallbackVtbl |
create(long address)
Returns a new
BGFXCallbackVtbl instance for the specified memory address. |
static BGFXCallbackVtbl |
createSafe(long address)
|
BGFXFatalCallback |
fatal()
Returns the value of the
fatal field. |
BGFXCallbackVtbl |
fatal(BGFXFatalCallbackI value)
Sets the specified value to the
fatal field. |
static BGFXCallbackVtbl |
malloc()
Returns a new
BGFXCallbackVtbl instance allocated with memAlloc. |
static BGFXCallbackVtbl |
mallocStack()
Returns a new
BGFXCallbackVtbl instance allocated on the thread-local MemoryStack. |
static BGFXCallbackVtbl |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXCallbackVtbl instance allocated on the specified MemoryStack. |
static BGFXCacheReadSizeCallback |
ncache_read_size(long struct)
Unsafe version of
cache_read_size(). |
static void |
ncache_read_size(long struct,
BGFXCacheReadSizeCallbackI value)
Unsafe version of
cache_read_size. |
static BGFXCacheReadCallback |
ncache_read(long struct)
Unsafe version of
cache_read(). |
static void |
ncache_read(long struct,
BGFXCacheReadCallbackI value)
Unsafe version of
cache_read. |
static BGFXCacheWriteCallback |
ncache_write(long struct)
Unsafe version of
cache_write(). |
static void |
ncache_write(long struct,
BGFXCacheWriteCallbackI value)
Unsafe version of
cache_write. |
static BGFXCaptureBeginCallback |
ncapture_begin(long struct)
Unsafe version of
capture_begin(). |
static void |
ncapture_begin(long struct,
BGFXCaptureBeginCallbackI value)
Unsafe version of
capture_begin. |
static BGFXCaptureEndCallback |
ncapture_end(long struct)
Unsafe version of
capture_end(). |
static void |
ncapture_end(long struct,
BGFXCaptureEndCallbackI value)
Unsafe version of
capture_end. |
static BGFXCaptureFrameCallback |
ncapture_frame(long struct)
Unsafe version of
capture_frame(). |
static void |
ncapture_frame(long struct,
BGFXCaptureFrameCallbackI value)
Unsafe version of
capture_frame. |
static BGFXFatalCallback |
nfatal(long struct)
Unsafe version of
fatal(). |
static void |
nfatal(long struct,
BGFXFatalCallbackI value)
Unsafe version of
fatal. |
static BGFXProfilerBeginLiteral |
nprofiler_begin_literal(long struct)
Unsafe version of
profiler_begin_literal(). |
static void |
nprofiler_begin_literal(long struct,
BGFXProfilerBeginLiteralI value)
Unsafe version of
profiler_begin_literal. |
static BGFXProfilerBegin |
nprofiler_begin(long struct)
Unsafe version of
profiler_begin(). |
static void |
nprofiler_begin(long struct,
BGFXProfilerBeginI value)
Unsafe version of
profiler_begin. |
static BGFXProfilerEnd |
nprofiler_end(long struct)
Unsafe version of
profiler_end(). |
static void |
nprofiler_end(long struct,
BGFXProfilerEndI value)
Unsafe version of
profiler_end. |
static BGFXScreenShotCallback |
nscreen_shot(long struct)
Unsafe version of
screen_shot(). |
static void |
nscreen_shot(long struct,
BGFXScreenShotCallbackI value)
Unsafe version of
screen_shot. |
static BGFXTraceVarArgsCallback |
ntrace_vargs(long struct)
Unsafe version of
trace_vargs(). |
static void |
ntrace_vargs(long struct,
BGFXTraceVarArgsCallbackI value)
Unsafe version of
trace_vargs. |
BGFXProfilerBeginLiteral |
profiler_begin_literal()
Returns the value of the
profiler_begin_literal field. |
BGFXCallbackVtbl |
profiler_begin_literal(BGFXProfilerBeginLiteralI value)
Sets the specified value to the
profiler_begin_literal field. |
BGFXProfilerBegin |
profiler_begin()
Returns the value of the
profiler_begin field. |
BGFXCallbackVtbl |
profiler_begin(BGFXProfilerBeginI value)
Sets the specified value to the
profiler_begin field. |
BGFXProfilerEnd |
profiler_end()
Returns the value of the
profiler_end field. |
BGFXCallbackVtbl |
profiler_end(BGFXProfilerEndI value)
Sets the specified value to the
profiler_end field. |
BGFXScreenShotCallback |
screen_shot()
Returns the value of the
screen_shot field. |
BGFXCallbackVtbl |
screen_shot(BGFXScreenShotCallbackI value)
Sets the specified value to the
screen_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 the
trace_vargs field. |
BGFXCallbackVtbl |
trace_vargs(BGFXTraceVarArgsCallbackI value)
Sets the specified value to the
trace_vargs field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int FATAL
public static final int TRACE_VARGS
public static final int PROFILER_BEGIN
public static final int PROFILER_BEGIN_LITERAL
public static final int PROFILER_END
public static final int CACHE_READ_SIZE
public static final int CACHE_READ
public static final int CACHE_WRITE
public static final int SCREEN_SHOT
public static final int CAPTURE_BEGIN
public static final int CAPTURE_END
public static final int CAPTURE_FRAME
public BGFXCallbackVtbl(java.nio.ByteBuffer container)
BGFXCallbackVtbl instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic BGFXFatalCallback fatal()
fatal field.public BGFXTraceVarArgsCallback trace_vargs()
trace_vargs field.public BGFXProfilerBegin profiler_begin()
profiler_begin field.public BGFXProfilerBeginLiteral profiler_begin_literal()
profiler_begin_literal field.public BGFXProfilerEnd profiler_end()
profiler_end field.public BGFXCacheReadSizeCallback cache_read_size()
cache_read_size field.public BGFXCacheReadCallback cache_read()
cache_read field.public BGFXCacheWriteCallback cache_write()
cache_write field.public BGFXScreenShotCallback screen_shot()
screen_shot field.public BGFXCaptureBeginCallback capture_begin()
capture_begin field.public BGFXCaptureEndCallback capture_end()
capture_end field.public BGFXCaptureFrameCallback capture_frame()
capture_frame field.public BGFXCallbackVtbl fatal(BGFXFatalCallbackI value)
fatal field.public BGFXCallbackVtbl trace_vargs(BGFXTraceVarArgsCallbackI value)
trace_vargs field.public BGFXCallbackVtbl profiler_begin(BGFXProfilerBeginI value)
profiler_begin field.public BGFXCallbackVtbl profiler_begin_literal(BGFXProfilerBeginLiteralI value)
profiler_begin_literal field.public BGFXCallbackVtbl profiler_end(BGFXProfilerEndI value)
profiler_end field.public BGFXCallbackVtbl cache_read_size(BGFXCacheReadSizeCallbackI value)
cache_read_size field.public BGFXCallbackVtbl cache_read(BGFXCacheReadCallbackI value)
cache_read field.public BGFXCallbackVtbl cache_write(BGFXCacheWriteCallbackI value)
cache_write field.public BGFXCallbackVtbl screen_shot(BGFXScreenShotCallbackI value)
screen_shot field.public BGFXCallbackVtbl capture_begin(BGFXCaptureBeginCallbackI value)
capture_begin field.public BGFXCallbackVtbl capture_end(BGFXCaptureEndCallbackI value)
capture_end field.public BGFXCallbackVtbl capture_frame(BGFXCaptureFrameCallbackI value)
capture_frame field.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)
public BGFXCallbackVtbl set(BGFXCallbackVtbl src)
src - the source structpublic static BGFXCallbackVtbl malloc()
BGFXCallbackVtbl instance allocated with memAlloc. The instance must be explicitly freed.public static BGFXCallbackVtbl calloc()
BGFXCallbackVtbl instance allocated with memCalloc. The instance must be explicitly freed.public static BGFXCallbackVtbl create()
BGFXCallbackVtbl instance allocated with BufferUtils.public static BGFXCallbackVtbl create(long address)
BGFXCallbackVtbl instance for the specified memory address.@Nullable public static BGFXCallbackVtbl createSafe(long address)
public static BGFXCallbackVtbl mallocStack()
BGFXCallbackVtbl instance allocated on the thread-local MemoryStack.public static BGFXCallbackVtbl callocStack()
BGFXCallbackVtbl instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static BGFXCallbackVtbl mallocStack(org.lwjgl.system.MemoryStack stack)
BGFXCallbackVtbl instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static BGFXCallbackVtbl callocStack(org.lwjgl.system.MemoryStack stack)
BGFXCallbackVtbl instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static BGFXFatalCallback nfatal(long struct)
fatal().public static BGFXTraceVarArgsCallback ntrace_vargs(long struct)
trace_vargs().public static BGFXProfilerBegin nprofiler_begin(long struct)
profiler_begin().public static BGFXProfilerBeginLiteral nprofiler_begin_literal(long struct)
profiler_begin_literal().public static BGFXProfilerEnd nprofiler_end(long struct)
profiler_end().public static BGFXCacheReadSizeCallback ncache_read_size(long struct)
cache_read_size().public static BGFXCacheReadCallback ncache_read(long struct)
cache_read().public static BGFXCacheWriteCallback ncache_write(long struct)
cache_write().public static BGFXScreenShotCallback nscreen_shot(long struct)
screen_shot().public static BGFXCaptureBeginCallback ncapture_begin(long struct)
capture_begin().public static BGFXCaptureEndCallback ncapture_end(long struct)
capture_end().public static BGFXCaptureFrameCallback ncapture_frame(long struct)
capture_frame().public static void nfatal(long struct,
BGFXFatalCallbackI value)
fatal.public static void ntrace_vargs(long struct,
BGFXTraceVarArgsCallbackI value)
trace_vargs.public static void nprofiler_begin(long struct,
BGFXProfilerBeginI value)
profiler_begin.public static void nprofiler_begin_literal(long struct,
BGFXProfilerBeginLiteralI value)
profiler_begin_literal.public static void nprofiler_end(long struct,
BGFXProfilerEndI value)
profiler_end.public static void ncache_read_size(long struct,
BGFXCacheReadSizeCallbackI value)
cache_read_size.public static void ncache_read(long struct,
BGFXCacheReadCallbackI value)
cache_read.public static void ncache_write(long struct,
BGFXCacheWriteCallbackI value)
cache_write.public static void nscreen_shot(long struct,
BGFXScreenShotCallbackI value)
screen_shot.public static void ncapture_begin(long struct,
BGFXCaptureBeginCallbackI value)
capture_begin.public static void ncapture_end(long struct,
BGFXCaptureEndCallbackI value)
capture_end.public static void ncapture_frame(long struct,
BGFXCaptureFrameCallbackI value)
capture_frame.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.