diff options
| author | Stenzek <stenzek@gmail.com> | 2018-10-03 22:28:38 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2018-10-20 21:11:33 +1000 |
| commit | 74b82bab3b6e4e8a1799bbcbdc5244f20f4d2826 (patch) | |
| tree | 0b2a83d57d193a13eaf75b5e3dde855252def265 /Source/Core/Common/GL/GLInterface/BGL.cpp | |
| parent | 6119212d684ea2f7f9f6e37fe85d502d0dcf0659 (diff) | |
GLInterface: Drop Haiku support
Diffstat (limited to 'Source/Core/Common/GL/GLInterface/BGL.cpp')
| -rw-r--r-- | Source/Core/Common/GL/GLInterface/BGL.cpp | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/Source/Core/Common/GL/GLInterface/BGL.cpp b/Source/Core/Common/GL/GLInterface/BGL.cpp deleted file mode 100644 index ed2670efc5..0000000000 --- a/Source/Core/Common/GL/GLInterface/BGL.cpp +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright 2017 Dolphin Emulator Project -// Licensed under GPLv2+ -// Refer to the license.txt file included. - -#include "Common/GL/GLInterface/BGL.h" - -#include <GLView.h> -#include <Size.h> -#include <Window.h> - -void cInterfaceBGL::Swap() -{ - m_gl->SwapBuffers(); -} - -bool cInterfaceBGL::Create(void* window_handle, bool stereo, bool core) -{ - m_window = static_cast<BWindow*>(window_handle); - - m_gl = new BGLView(m_window->Bounds(), "cInterfaceBGL", B_FOLLOW_ALL_SIDES, 0, - BGL_RGB | BGL_DOUBLE | BGL_ALPHA); - m_window->AddChild(m_gl); - - s_opengl_mode = GLInterfaceMode::MODE_OPENGL; - - // Control m_window size and picture scaling - BRect size = m_gl->Frame(); - s_backbuffer_width = size.IntegerWidth(); - s_backbuffer_height = size.IntegerHeight(); - - return true; -} - -bool cInterfaceBGL::MakeCurrent() -{ - m_gl->LockGL(); - return true; -} - -bool cInterfaceBGL::ClearCurrent() -{ - m_gl->UnlockGL(); - return true; -} - -void cInterfaceBGL::Shutdown() -{ - // We don't need to delete m_gl, it's owned by the BWindow. - m_gl = nullptr; -} - -void cInterfaceBGL::Update() -{ - BRect size = m_gl->Frame(); - - if (s_backbuffer_width == size.IntegerWidth() && s_backbuffer_height == size.IntegerHeight()) - return; - - s_backbuffer_width = size.IntegerWidth(); - s_backbuffer_height = size.IntegerHeight(); -} - -void cInterfaceBGL::SwapInterval(int interval) -{ -} - -void* cInterfaceBGL::GetFuncAddress(const std::string& name) -{ - return m_gl->GetGLProcAddress(name.c_str()); -} |
