Debian Codegraph @

Source/Core/Common/GL/GLInterface/BGL.h

raw symbols SCIP
1 // Copyright 2017 Dolphin Emulator Project
2 // SPDX-License-Identifier: GPL-2.0-or-later
3
4 #pragma once
5
6 #include "Common/GL/GLContext.h"
7
8 class BWindow;
9 class BGLView;
10
11 class GLContextBGL final : public GLContext
12 {
13 public:
14 ~GLContextBGL() override;
15
16 bool IsHeadless() const override;
17
18 bool MakeCurrent() override;
19 bool ClearCurrent() override;
20
21 void Update() override;
22
23 void Swap() override;
24
25 void* GetFuncAddress(const std::string& name) override;
26
27 protected:
28 bool Initialize(const WindowSystemInfo& wsi, bool stereo, bool core) override;
29
30 private:
31 static BGLView* s_current;
32
33 BWindow* m_window;
34 BGLView* m_gl;
35 };