mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 16:18:58 +00:00
Move GLInterface around to remove VideoBackends dependency on DolphinWX
This commit is contained in:
parent
7e83a0ea9b
commit
226a9c2392
30 changed files with 71 additions and 45 deletions
23
Source/Core/DolphinWX/GLInterface/GLInterface.cpp
Normal file
23
Source/Core/DolphinWX/GLInterface/GLInterface.cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
// Copyright 2014 Dolphin Emulator Project
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#include "DolphinWX/GLInterface/GLInterface.h"
|
||||
#include "VideoBackends/OGL/GLInterfaceBase.h"
|
||||
|
||||
GLWindow GLWin;
|
||||
|
||||
cInterfaceBase* HostGL_CreateGLInterface()
|
||||
{
|
||||
#if defined(USE_EGL) && USE_EGL
|
||||
return new cInterfaceEGL;
|
||||
#elif defined(__APPLE__)
|
||||
return new cInterfaceAGL;
|
||||
#elif defined(_WIN32)
|
||||
return new cInterfaceWGL;
|
||||
#elif defined(HAVE_X11) && HAVE_X11
|
||||
return new cInterfaceGLX;
|
||||
#else
|
||||
return nullptr;
|
||||
#endif
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue