1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-22 15:23:01 +01:00

Allow switching between OpenGL and other renderers without restarting

This commit is contained in:
William Wallace
2017-07-11 14:56:17 +01:00
committed by Ted John
parent ab39262ccf
commit ae110a9159
12 changed files with 93 additions and 55 deletions

View File

@@ -663,6 +663,11 @@ extern "C"
return GetContext()->GetUiContext()->SetFullscreenMode((FULLSCREEN_MODE)mode);
}
void context_recreate_window()
{
GetContext()->GetUiContext()->RecreateWindow();
}
sint32 context_get_resolutions(Resolution * * outResolutions)
{
auto resolutions = GetContext()->GetUiContext()->GetFullscreenResolutions();