Moving window creation to examples/common.

This commit is contained in:
bkaradzic 2013-01-13 10:47:30 -08:00
parent 59058e7200
commit d6e4a57cf2
14 changed files with 398 additions and 197 deletions
examples/04-mesh

View file

@ -7,6 +7,7 @@
#include <bx/bx.h>
#include <bx/timer.h>
#include <bx/readerwriter.h>
#include "../common/entry.h"
#include "../common/dbg.h"
#include "../common/math.h"
@ -326,7 +327,7 @@ int _main_(int _argc, char** _argv)
Mesh mesh;
mesh.load("meshes/bunny.bin");
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.