mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-01 03:47:07 -05:00
Added vsync by default to font examples.
This commit is contained in:
parent
4319f8f1df
commit
9c0b5be6d7
2 changed files with 4 additions and 4 deletions
|
@ -29,11 +29,11 @@ int _main_(int /*_argc*/, char** /*_argv*/)
|
||||||
uint32_t width = 1280;
|
uint32_t width = 1280;
|
||||||
uint32_t height = 720;
|
uint32_t height = 720;
|
||||||
uint32_t debug = BGFX_DEBUG_TEXT;
|
uint32_t debug = BGFX_DEBUG_TEXT;
|
||||||
uint32_t reset = 0;
|
uint32_t reset = BGFX_RESET_VSYNC;
|
||||||
|
|
||||||
bgfx::init();
|
bgfx::init();
|
||||||
|
|
||||||
bgfx::reset(width, height);
|
bgfx::reset(width, height, reset);
|
||||||
|
|
||||||
// Enable debug text.
|
// Enable debug text.
|
||||||
bgfx::setDebug(debug);
|
bgfx::setDebug(debug);
|
||||||
|
|
|
@ -37,11 +37,11 @@ int _main_(int /*_argc*/, char** /*_argv*/)
|
||||||
uint32_t width = 1280;
|
uint32_t width = 1280;
|
||||||
uint32_t height = 720;
|
uint32_t height = 720;
|
||||||
uint32_t debug = BGFX_DEBUG_TEXT;
|
uint32_t debug = BGFX_DEBUG_TEXT;
|
||||||
uint32_t reset = 0;
|
uint32_t reset = BGFX_RESET_VSYNC;
|
||||||
|
|
||||||
bgfx::init();
|
bgfx::init();
|
||||||
|
|
||||||
bgfx::reset(width, height);
|
bgfx::reset(width, height, reset);
|
||||||
|
|
||||||
// Enable debug text.
|
// Enable debug text.
|
||||||
bgfx::setDebug(debug);
|
bgfx::setDebug(debug);
|
||||||
|
|
Loading…
Reference in a new issue