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

View File

@@ -3,13 +3,11 @@
* License: http://www.opensource.org/licenses/BSD-2-Clause
*/
#include <bgfx.h>
#include <bx/bx.h>
#include "dbg.h"
#include <stdio.h>
#if BX_PLATFORM_NACL
#include <stdio.h>
#include <string.h>
#include <pthread.h>
@@ -22,11 +20,8 @@
#include <ppapi/c/ppp_instance.h>
#include <ppapi/gles2/gl2ext_ppapi.h>
namespace bgfx
{
typedef void (*PostSwapBuffersFn)(uint32_t _width, uint32_t _height);
extern void naclSetIntefraces(PP_Instance, const PPB_Instance*, const PPB_Graphics3D*, PostSwapBuffersFn);
}
#include <bgfxplatform.h>
#include "dbg.h"
extern int _main_(int _argc, char** _argv);