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.NativeResourceCallback virtual table.LWJGL note: The bgfx build bundled with LWJGL will never invoke the
fatal,trace_vargs,profiler_begin,profiler_begin_literal,profiler_endcallbacks, so they may beNULL. When using a custom build withBGFX_CONFIG_DEBUG(Debugconfiguration) and/orBGFX_CONFIG_PROFILER(--with-profilerbuild option), the corresponding callbacks should not beNULL.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 intALIGNOFThe struct alignment in bytes.static intCACHE_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 intSIZEOFThe struct size in bytes.static intTRACE_VARGSThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description BGFXCallbackVtbl(java.nio.ByteBuffer container)Creates aBGFXCallbackVtblinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BGFXCacheReadCallbackcache_read()the cache read callbackBGFXCallbackVtblcache_read(BGFXCacheReadCallbackI value)Sets the specified value to thecache_read()field.BGFXCacheReadSizeCallbackcache_read_size()the cache read size callbackBGFXCallbackVtblcache_read_size(BGFXCacheReadSizeCallbackI value)Sets the specified value to thecache_read_size()field.BGFXCacheWriteCallbackcache_write()the cache write callbackBGFXCallbackVtblcache_write(BGFXCacheWriteCallbackI value)Sets the specified value to thecache_write()field.static BGFXCallbackVtblcalloc()Returns a newBGFXCallbackVtblinstance allocated withmemCalloc.static BGFXCallbackVtblcalloc(org.lwjgl.system.MemoryStack stack)Returns a newBGFXCallbackVtblinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static BGFXCallbackVtblcallocStack()Deprecated.static BGFXCallbackVtblcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.BGFXCaptureBeginCallbackcapture_begin()the capture begin callbackBGFXCallbackVtblcapture_begin(BGFXCaptureBeginCallbackI value)Sets the specified value to thecapture_begin()field.BGFXCaptureEndCallbackcapture_end()the capture end callbackBGFXCallbackVtblcapture_end(BGFXCaptureEndCallbackI value)Sets the specified value to thecapture_end()field.BGFXCaptureFrameCallbackcapture_frame()the capture framecallbackBGFXCallbackVtblcapture_frame(BGFXCaptureFrameCallbackI value)Sets the specified value to thecapture_frame()field.static BGFXCallbackVtblcreate()Returns a newBGFXCallbackVtblinstance allocated withBufferUtils.static BGFXCallbackVtblcreate(long address)Returns a newBGFXCallbackVtblinstance for the specified memory address.static BGFXCallbackVtblcreateSafe(long address)BGFXFatalCallbackfatal()the fatal error callbackBGFXCallbackVtblfatal(BGFXFatalCallbackI value)Sets the specified value to thefatal()field.static BGFXCallbackVtblmalloc()Returns a newBGFXCallbackVtblinstance allocated withmemAlloc.static BGFXCallbackVtblmalloc(org.lwjgl.system.MemoryStack stack)Returns a newBGFXCallbackVtblinstance allocated on the specifiedMemoryStack.static BGFXCallbackVtblmallocStack()Deprecated.static BGFXCallbackVtblmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static BGFXCacheReadCallbackncache_read(long struct)Unsafe version ofcache_read().static voidncache_read(long struct, BGFXCacheReadCallbackI value)Unsafe version ofcache_read.static BGFXCacheReadSizeCallbackncache_read_size(long struct)Unsafe version ofcache_read_size().static voidncache_read_size(long struct, BGFXCacheReadSizeCallbackI value)Unsafe version ofcache_read_size.static BGFXCacheWriteCallbackncache_write(long struct)Unsafe version ofcache_write().static voidncache_write(long struct, BGFXCacheWriteCallbackI value)Unsafe version ofcache_write.static BGFXCaptureBeginCallbackncapture_begin(long struct)Unsafe version ofcapture_begin().static voidncapture_begin(long struct, BGFXCaptureBeginCallbackI value)Unsafe version ofcapture_begin.static BGFXCaptureEndCallbackncapture_end(long struct)Unsafe version ofcapture_end().static voidncapture_end(long struct, BGFXCaptureEndCallbackI value)Unsafe version ofcapture_end.static BGFXCaptureFrameCallbackncapture_frame(long struct)Unsafe version ofcapture_frame().static voidncapture_frame(long struct, BGFXCaptureFrameCallbackI value)Unsafe version ofcapture_frame.static BGFXFatalCallbacknfatal(long struct)Unsafe version offatal().static voidnfatal(long struct, BGFXFatalCallbackI value)Unsafe version offatal.static BGFXProfilerBeginnprofiler_begin(long struct)Unsafe version ofprofiler_begin().static voidnprofiler_begin(long struct, BGFXProfilerBeginI value)Unsafe version ofprofiler_begin.static BGFXProfilerBeginLiteralnprofiler_begin_literal(long struct)Unsafe version ofprofiler_begin_literal().static voidnprofiler_begin_literal(long struct, BGFXProfilerBeginLiteralI value)Unsafe version ofprofiler_begin_literal.static BGFXProfilerEndnprofiler_end(long struct)Unsafe version ofprofiler_end().static voidnprofiler_end(long struct, BGFXProfilerEndI value)Unsafe version ofprofiler_end.static BGFXScreenShotCallbacknscreen_shot(long struct)Unsafe version ofscreen_shot().static voidnscreen_shot(long struct, BGFXScreenShotCallbackI value)Unsafe version ofscreen_shot.static BGFXTraceVarArgsCallbackntrace_vargs(long struct)Unsafe version oftrace_vargs().static voidntrace_vargs(long struct, BGFXTraceVarArgsCallbackI value)Unsafe version oftrace_vargs.BGFXProfilerBeginprofiler_begin()the profiler begin callbackBGFXCallbackVtblprofiler_begin(BGFXProfilerBeginI value)Sets the specified value to theprofiler_begin()field.BGFXProfilerBeginLiteralprofiler_begin_literal()the profiler begin literal callbackBGFXCallbackVtblprofiler_begin_literal(BGFXProfilerBeginLiteralI value)Sets the specified value to theprofiler_begin_literal()field.BGFXProfilerEndprofiler_end()the profiler end callbackBGFXCallbackVtblprofiler_end(BGFXProfilerEndI value)Sets the specified value to theprofiler_end()field.BGFXScreenShotCallbackscreen_shot()the screenshot callbackBGFXCallbackVtblscreen_shot(BGFXScreenShotCallbackI value)Sets the specified value to thescreen_shot()field.BGFXCallbackVtblset(BGFXCallbackVtbl src)Copies the specified struct data to this struct.BGFXCallbackVtblset(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.intsizeof()BGFXTraceVarArgsCallbacktrace_vargs()the debug message callbackBGFXCallbackVtbltrace_vargs(BGFXTraceVarArgsCallbackI value)Sets the specified value to thetrace_vargs()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
BGFXCallbackVtbl
public BGFXCallbackVtbl(java.nio.ByteBuffer container)
Creates aBGFXCallbackVtblinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
fatal
@Nullable public BGFXFatalCallback fatal()
the fatal error callback
-
trace_vargs
@Nullable public BGFXTraceVarArgsCallback trace_vargs()
the debug message callback
-
profiler_begin
@Nullable public BGFXProfilerBegin profiler_begin()
the profiler begin callback
-
profiler_begin_literal
@Nullable public BGFXProfilerBeginLiteral profiler_begin_literal()
the profiler begin literal callback
-
profiler_end
@Nullable public BGFXProfilerEnd profiler_end()
the profiler end callback
-
cache_read_size
public BGFXCacheReadSizeCallback cache_read_size()
the cache read size callback
-
cache_read
public BGFXCacheReadCallback cache_read()
the cache read callback
-
cache_write
public BGFXCacheWriteCallback cache_write()
the cache write callback
-
screen_shot
public BGFXScreenShotCallback screen_shot()
the screenshot callback
-
capture_begin
public BGFXCaptureBeginCallback capture_begin()
the capture begin callback
-
capture_end
public BGFXCaptureEndCallback capture_end()
the capture end callback
-
capture_frame
public BGFXCaptureFrameCallback capture_frame()
the capture framecallback
-
fatal
public BGFXCallbackVtbl fatal(@Nullable BGFXFatalCallbackI value)
Sets the specified value to thefatal()field.
-
trace_vargs
public BGFXCallbackVtbl trace_vargs(@Nullable BGFXTraceVarArgsCallbackI value)
Sets the specified value to thetrace_vargs()field.
-
profiler_begin
public BGFXCallbackVtbl profiler_begin(@Nullable BGFXProfilerBeginI value)
Sets the specified value to theprofiler_begin()field.
-
profiler_begin_literal
public BGFXCallbackVtbl profiler_begin_literal(@Nullable BGFXProfilerBeginLiteralI value)
Sets the specified value to theprofiler_begin_literal()field.
-
profiler_end
public BGFXCallbackVtbl profiler_end(@Nullable 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 newBGFXCallbackVtblinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static BGFXCallbackVtbl calloc()
Returns a newBGFXCallbackVtblinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static BGFXCallbackVtbl create()
Returns a newBGFXCallbackVtblinstance allocated withBufferUtils.
-
create
public static BGFXCallbackVtbl create(long address)
Returns a newBGFXCallbackVtblinstance for the specified memory address.
-
createSafe
@Nullable public static BGFXCallbackVtbl createSafe(long address)
-
mallocStack
@Deprecated public static BGFXCallbackVtbl mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static BGFXCallbackVtbl callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static BGFXCallbackVtbl mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static BGFXCallbackVtbl callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
malloc
public static BGFXCallbackVtbl malloc(org.lwjgl.system.MemoryStack stack)
Returns a newBGFXCallbackVtblinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static BGFXCallbackVtbl calloc(org.lwjgl.system.MemoryStack stack)
Returns a newBGFXCallbackVtblinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
nfatal
@Nullable public static BGFXFatalCallback nfatal(long struct)
Unsafe version offatal().
-
ntrace_vargs
@Nullable public static BGFXTraceVarArgsCallback ntrace_vargs(long struct)
Unsafe version oftrace_vargs().
-
nprofiler_begin
@Nullable public static BGFXProfilerBegin nprofiler_begin(long struct)
Unsafe version ofprofiler_begin().
-
nprofiler_begin_literal
@Nullable public static BGFXProfilerBeginLiteral nprofiler_begin_literal(long struct)
Unsafe version ofprofiler_begin_literal().
-
nprofiler_end
@Nullable 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, @Nullable BGFXFatalCallbackI value)Unsafe version offatal.
-
ntrace_vargs
public static void ntrace_vargs(long struct, @Nullable BGFXTraceVarArgsCallbackI value)Unsafe version oftrace_vargs.
-
nprofiler_begin
public static void nprofiler_begin(long struct, @Nullable BGFXProfilerBeginI value)Unsafe version ofprofiler_begin.
-
nprofiler_begin_literal
public static void nprofiler_begin_literal(long struct, @Nullable BGFXProfilerBeginLiteralI value)Unsafe version ofprofiler_begin_literal.
-
nprofiler_end
public static void nprofiler_end(long struct, @Nullable 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
-
-