Host: Move CreateDisplayForAPI() into common code

This commit is contained in:
Connor McLaughlin
2022-08-24 19:12:09 +10:00
parent 4f2da4213d
commit 7277d29ff9
3 changed files with 53 additions and 47 deletions

View File

@ -304,6 +304,8 @@ protected:
extern std::unique_ptr<HostDisplay> g_host_display;
namespace Host {
std::unique_ptr<HostDisplay> CreateDisplayForAPI(HostDisplay::RenderAPI api);
/// Creates the host display. This may create a new window. The API used depends on the current configuration.
bool AcquireHostDisplay(HostDisplay::RenderAPI api);