mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Removed bgfx::setPlatformData usage from entry example harness.
This commit is contained in:
@@ -1311,11 +1311,13 @@ int _main_(int _argc, char** _argv)
|
||||
View view;
|
||||
cmdAdd("view", cmdView, &view);
|
||||
|
||||
entry::setWindowFlags(entry::WindowHandle{0}, ENTRY_WINDOW_FLAG_ASPECT_RATIO, false);
|
||||
entry::setWindowSize(entry::WindowHandle{0}, view.m_width, view.m_height);
|
||||
entry::setWindowFlags(entry::kDefaultWindowHandle, ENTRY_WINDOW_FLAG_ASPECT_RATIO, false);
|
||||
entry::setWindowSize(entry::kDefaultWindowHandle, view.m_width, view.m_height);
|
||||
|
||||
bgfx::Init init;
|
||||
init.type = view.m_rendererType;
|
||||
init.platformData.nwh = entry::getNativeWindowHandle(entry::kDefaultWindowHandle);
|
||||
init.platformData.ndt = entry::getNativeDisplayHandle();
|
||||
init.resolution.width = view.m_width;
|
||||
init.resolution.height = view.m_height;
|
||||
init.resolution.reset = BGFX_RESET_VSYNC;
|
||||
@@ -2064,8 +2066,7 @@ int _main_(int _argc, char** _argv)
|
||||
bx::stringPrintf(title, "Failed to load %s!", filePath);
|
||||
}
|
||||
|
||||
entry::WindowHandle handle = { 0 };
|
||||
entry::setWindowTitle(handle, title.c_str() );
|
||||
entry::setWindowTitle(entry::kDefaultWindowHandle, title.c_str() );
|
||||
}
|
||||
|
||||
int64_t now = bx::getHPCounter();
|
||||
|
||||
Reference in New Issue
Block a user