Moving window creation to examples/common.
This commit is contained in:
parent
59058e7200
commit
d6e4a57cf2
14 changed files with 398 additions and 197 deletions
examples/00-helloworld
|
@ -5,6 +5,7 @@
|
|||
|
||||
#include <bgfx.h>
|
||||
#include <bx/bx.h>
|
||||
#include "../common/entry.h"
|
||||
#include "../common/dbg.h"
|
||||
|
||||
int _main_(int _argc, char** _argv)
|
||||
|
@ -26,7 +27,7 @@ int _main_(int _argc, char** _argv)
|
|||
, 0
|
||||
);
|
||||
|
||||
while (true)
|
||||
while (entry::Event::Exit != entry::poll() )
|
||||
{
|
||||
// This dummy draw call is here to make sure that view 0 is cleared
|
||||
// if no other draw calls are submitted to view 0.
|
||||
|
|
Reference in a new issue