This commit is contained in:
Branimir Karadžić
2015-10-23 20:52:22 -07:00
parent 6ffdb3e247
commit 1c51d81006
22 changed files with 97 additions and 54 deletions

View File

@@ -105,14 +105,16 @@ static const uint16_t s_cubeIndices[36] =
class Bump : public entry::AppI
{
void init(int /*_argc*/, char** /*_argv*/) BX_OVERRIDE
void init(int _argc, char** _argv) BX_OVERRIDE
{
Args args(_argc, _argv);
m_width = 1280;
m_height = 720;
m_debug = BGFX_DEBUG_TEXT;
m_reset = BGFX_RESET_VSYNC;
bgfx::init();
bgfx::init(args.m_type, args.m_pciId);
bgfx::reset(m_width, m_height, m_reset);
// Enable debug text.