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

@@ -323,14 +323,15 @@ public:
| BGFX_RESET_MSAA_X16
;
bgfx::init(
args.m_type
, args.m_pciId
, 0
, &m_callback // custom callback handler
, &m_allocator // custom allocator
);
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;
init.callback = &m_callback; // custom callback handler
init.allocator = &m_allocator; // custom allocator
bgfx::init(init);
// Enable debug text.
bgfx::setDebug(m_debug);