bgfx_reset

Reset graphic settings and back-buffer size. Attention: This call doesn't actually change window size, it just resizes back-buffer. Windowing code has to change window size.

  1. void bgfx_reset(uint _width, uint _height, uint _flags, bgfx_texture_format_t _format)
    version(BindBgfx_Static)
    extern (C) @nogc nothrow
    void
    bgfx_reset
  2. da_bgfx_reset bgfx_reset;

Parameters

_width uint

Back-buffer width.

_height uint

Back-buffer height.

_flags uint

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 when BGFX_CONFIG_MULTITHREADED=0. - BGFX_RESET_SRGB_BACKBUFFER - Enable sRGB backbuffer.

_format bgfx_texture_format_t

Texture format. See: TextureFormat::Enum.

Meta