Class 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.

    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.

    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);
     }