Changed bgfx::init to take init parameters as structure instead of arguments.

This commit is contained in:
Branimir Karadžić
2018-04-17 15:42:18 -07:00
parent 84d694a032
commit 5bb6a14876
51 changed files with 657 additions and 361 deletions

View File

@@ -99,8 +99,13 @@ public:
m_debug = BGFX_DEBUG_NONE;
m_reset = BGFX_RESET_VSYNC;
bgfx::init(args.m_type, args.m_pciId);
bgfx::reset(m_width, m_height, m_reset);
bgfx::Init init;
init.type = args.m_type;
init.vendorId = args.m_pciId;
init.resolution.width = m_width;
init.resolution.height = m_height;
init.resolution.reset = m_reset;
bgfx::init(init);
// Enable debug text.
bgfx::setDebug(m_debug);