2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
19 explicit CGLContext(Display
*dpy
)
23 virtual ~CGLContext() = default;
24 virtual bool Refresh(bool force
, int screen
, Window glWindow
, bool &newContext
) = 0;
25 virtual bool CreatePB() { return false; }
26 virtual void Destroy() = 0;
27 virtual void Detach() = 0;
28 virtual void SetVSync(bool enable
) = 0;
29 virtual void SwapBuffers() = 0;
30 virtual void QueryExtensions() = 0;
31 virtual uint64_t GetVblankTiming(uint64_t& msc
, uint64_t& interval
) { return 0; }
32 bool IsExtSupported(const char* extension
) const;
34 std::string
ExtPrefix() { return m_extPrefix
; }
35 std::string m_extPrefix
;
36 std::string m_extensions
;
41 bool m_omlSync
= true;