public class BGFXPlatform
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BGFXPlatform.Functions
Contains the function pointers loaded from
BGFX.getLibrary(). |
| Modifier and Type | Field and Description |
|---|---|
static int |
BGFX_RENDER_FRAME_COUNT
Render frame.
|
static int |
BGFX_RENDER_FRAME_EXITING
Render frame.
|
static int |
BGFX_RENDER_FRAME_NO_CONTEXT
Render frame.
|
static int |
BGFX_RENDER_FRAME_RENDER
Render frame.
|
static int |
BGFX_RENDER_FRAME_TIMEOUT
Render frame.
|
| Modifier and Type | Method and Description |
|---|---|
static BGFXInternalData |
bgfx_get_internal_data()
Gets internal data for interop.
|
static long |
bgfx_override_internal_texture_ptr(short _handle,
long _ptr)
Overrides internal texture with externally created texture.
|
static long |
bgfx_override_internal_texture(short _handle,
int _width,
int _height,
int _numMips,
int _format,
long _flags)
Overrides internal texture by creating new texture.
|
static int |
bgfx_render_frame(int _msecs)
Render frame.
|
static void |
bgfx_set_platform_data(BGFXPlatformData _data)
Sets platform data.
|
static long |
nbgfx_get_internal_data()
Unsafe version of:
get_internal_data |
static long |
nbgfx_override_internal_texture(short _handle,
short _width,
short _height,
byte _numMips,
int _format,
long _flags)
Unsafe version of:
override_internal_texture |
static void |
nbgfx_set_platform_data(long _data)
Unsafe version of:
set_platform_data |
public static final int BGFX_RENDER_FRAME_NO_CONTEXT
bgfx_renderer_frame_t)
public static final int BGFX_RENDER_FRAME_RENDER
bgfx_renderer_frame_t)
public static final int BGFX_RENDER_FRAME_TIMEOUT
bgfx_renderer_frame_t)
public static final int BGFX_RENDER_FRAME_EXITING
bgfx_renderer_frame_t)
public static final int BGFX_RENDER_FRAME_COUNT
bgfx_renderer_frame_t)
public static int bgfx_render_frame(int _msecs)
bgfx_render_frame is blocking call. It waits for frame to be called from API thread to process frame. If timeout value is passed call will
timeout and return even if bgfx_frame is not called.
This call should be only used on platforms that don't allow creating separate rendering thread. If it is called before to init, render thread won't
be created by init call.
_msecs - timeout in millisecondsRENDER_FRAME_NO_CONTEXT RENDER_FRAME_RENDER RENDER_FRAME_TIMEOUT RENDER_FRAME_EXITING RENDER_FRAME_COUNTpublic static void nbgfx_set_platform_data(long _data)
set_platform_datapublic static void bgfx_set_platform_data(BGFXPlatformData _data)
Must be called before init.
_data - the platform data to setpublic static long nbgfx_get_internal_data()
get_internal_data@Nullable public static BGFXInternalData bgfx_get_internal_data()
public static long bgfx_override_internal_texture_ptr(short _handle,
long _ptr)
It's expected you understand some bgfx internals before you use this call.
Must be called only on render thread.
_handle - texture handle_ptr - native API pointer to texturepublic static long nbgfx_override_internal_texture(short _handle,
short _width,
short _height,
byte _numMips,
int _format,
long _flags)
override_internal_texturepublic static long bgfx_override_internal_texture(short _handle,
int _width,
int _height,
int _numMips,
int _format,
long _flags)
It's expected you understand some bgfx internals before you use this call.
Must be called only on render thread.
_handle - texture handle_width - width_height - height_numMips - number of mip-maps_format - texture format_flags - default texture sampling mode is linear, and wrap mode is repeatCopyright LWJGL. All Rights Reserved. License terms.