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.
11 #include "GLContext.h"
22 class CGLContextGLX
: public CGLContext
25 explicit CGLContextGLX(Display
*dpy
);
26 bool Refresh(bool force
, int screen
, Window glWindow
, bool &newContext
) override
;
27 void Destroy() override
;
28 void Detach() override
;
29 void SetVSync(bool enable
) override
;
30 void SwapBuffers() override
;
31 void QueryExtensions() override
;
32 GLXWindow m_glxWindow
= 0;
33 GLXContext m_glxContext
= 0;
36 bool IsSuitableVisual(XVisualInfo
*vInfo
);
38 int (*m_glXGetVideoSyncSGI
)(unsigned int*);
39 int (*m_glXWaitVideoSyncSGI
)(int, int, unsigned int*);
40 int (*m_glXSwapIntervalMESA
)(int);
41 PFNGLXSWAPINTERVALEXTPROC m_glXSwapIntervalEXT
;