Function bgfx_sys::bgfx_reset
source · pub unsafe extern "C" fn bgfx_reset(
_width: u32,
_height: u32,
_flags: u32,
_format: bgfx_texture_format_t
)
Expand description
Reset graphic settings and back-buffer size. @attention This call doesn’t change the window size, it just resizes the back-buffer. Your windowing code controls the window size.
@param[in] _width Back-buffer width.
@param[in] _height Back-buffer height.
@param[in] _flags See: BGFX_RESET_*
for more info.
BGFX_RESET_NONE
- No reset flags.BGFX_RESET_FULLSCREEN
- Not supported yet.BGFX_RESET_MSAA_X[2/4/8/16]
- Enable 2, 4, 8 or 16 x MSAA.BGFX_RESET_VSYNC
- Enable V-Sync.BGFX_RESET_MAXANISOTROPY
- Turn on/off max anisotropy.BGFX_RESET_CAPTURE
- Begin screen capture.BGFX_RESET_FLUSH_AFTER_RENDER
- Flush rendering after submitting to GPU.BGFX_RESET_FLIP_AFTER_RENDER
- This flag specifies where flip occurs. Default behaviour is that flip occurs before rendering new frame. This flag only has effect whenBGFX_CONFIG_MULTITHREADED=0
.BGFX_RESET_SRGB_BACKBUFFER
- Enable sRGB back-buffer. @param[in] _format Texture format. See:TextureFormat::Enum
.