Working bgfx renderer base on Windows

This commit is contained in:
2015-09-08 20:36:03 +02:00
parent 78ec82699c
commit 17a00fef85
3 changed files with 14 additions and 8 deletions
Regular → Executable
+9 -1
View File
@@ -63,10 +63,18 @@ public:
// Initialize bgfx
bgfx::glfwSetWindow(m_Window);
bgfx::init();
bgfx::init(bgfx::RendererType::OpenGL, BGFX_PCI_ID_NONE, 0, nullptr, nullptr);
bgfx::reset(m_Resolution.Width, m_Resolution.Height, BGFX_RESET_NONE);
bgfx::setDebug(BGFX_DEBUG_TEXT);
bgfx::setViewClear(0, BGFX_CLEAR_COLOR | BGFX_CLEAR_DEPTH, 0x303030ff, 1.0f, 0);
std::stringstream ss;
ss << bgfx::getRendererName(bgfx::getRendererType());
#ifdef DEBUG
ss << " DEBUG";
#endif
LOG_INFO(ss.str().c_str());
glfwSetWindowTitle(m_Window, ss.str().c_str());
}
void Draw(RenderQueueCollection& rq)