Function bgfx_sys::bgfx_frame

source ·
pub unsafe extern "C" fn bgfx_frame(_capture: bool) -> u32
Expand description

Advance to next frame. When using multithreaded renderer, this call just swaps internal buffers, kicks render thread, and returns. In singlethreaded renderer this call does frame rendering.

@param[in] _capture Capture frame with graphics debugger.

@returns Current frame number. This might be used in conjunction with double/multi buffering data outside the library and passing it to library via bgfx::makeRef calls.