Added F8 as MSAA toggle in examples.

This commit is contained in:
bkaradzic 2013-02-21 22:05:33 -08:00
parent c2f2c3bdf0
commit 35d7d2ff1b
11 changed files with 125 additions and 112 deletions
examples/00-helloworld

View file

@ -14,6 +14,7 @@ int _main_(int _argc, char** _argv)
uint32_t width = 1280;
uint32_t height = 720;
uint32_t debug = BGFX_DEBUG_TEXT;
uint32_t reset = BGFX_RESET_NONE;
bgfx::init();
bgfx::reset(width, height);
@ -29,7 +30,7 @@ int _main_(int _argc, char** _argv)
, 0
);
while (!processEvents(width, height, debug) )
while (!processEvents(width, height, debug, reset) )
{
// Set view 0 default viewport.
bgfx::setViewRect(0, 0, 0, width, height);