diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2014-08-03 21:14:59 -0700 |
|---|---|---|
| committer | Pierre Bourdon <delroth@gmail.com> | 2014-08-03 21:14:59 -0700 |
| commit | e15ec56bf0237dba3db5cf969d68566af3a79194 (patch) | |
| tree | 110dba64d967a44be6c1699f9331320cd21e877d /Source/Core/DolphinWX/GLInterface/GLInterface.cpp | |
| parent | 89adfba67bdf145ad0eae174cbe755f9aa7aa802 (diff) | |
| parent | 1fcf07f9cccf838894bf7a869ec0749cf2abbb2d (diff) | |
Merge pull request #716 from delroth/vertex-loader
Make vertex loader testable
Diffstat (limited to 'Source/Core/DolphinWX/GLInterface/GLInterface.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/GLInterface/GLInterface.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Source/Core/DolphinWX/GLInterface/GLInterface.cpp b/Source/Core/DolphinWX/GLInterface/GLInterface.cpp new file mode 100644 index 0000000000..bb9ce669e2 --- /dev/null +++ b/Source/Core/DolphinWX/GLInterface/GLInterface.cpp @@ -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 +} |
