Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
KODI::WINDOWING::X11::CGLContextGLX Class Reference

#include <GLContextGLX.h>

Inheritance diagram for KODI::WINDOWING::X11::CGLContextGLX:
CGLContext

Public Member Functions

 CGLContextGLX (Display *dpy)
 
bool Refresh (bool force, int screen, Window glWindow, bool &newContext) override
 
void Destroy () override
 
void Detach () override
 
void SetVSync (bool enable) override
 
void SwapBuffers () override
 
void QueryExtensions () override
 
- Public Member Functions inherited from CGLContext
 CGLContext (Display *dpy)
 
virtual ~CGLContext ()=default
 
virtual bool CreatePB ()
 
virtual uint64_t GetVblankTiming (uint64_t &msc, uint64_t &interval)
 
bool IsExtSupported (const char *extension) const
 
std::string ExtPrefix ()
 

Public Attributes

GLXWindow m_glxWindow = 0
 
GLXContext m_glxContext = 0
 
- Public Attributes inherited from CGLContext
std::string m_extPrefix
 
std::string m_extensions
 
Display * m_dpy
 

Protected Member Functions

bool IsSuitableVisual (XVisualInfo *vInfo)
 

Protected Attributes

int(* m_glXGetVideoSyncSGI )(unsigned int *)
 
int(* m_glXWaitVideoSyncSGI )(int, int, unsigned int *)
 
int(* m_glXSwapIntervalMESA )(int)
 
PFNGLXSWAPINTERVALEXTPROC m_glXSwapIntervalEXT
 
int m_nScreen
 
int m_iVSyncErrors
 
int m_vsyncMode
 
- Protected Attributes inherited from CGLContext
bool m_omlSync = true
 

Constructor & Destructor Documentation

◆ CGLContextGLX()

CGLContextGLX::CGLContextGLX ( Display * dpy)
explicit

Member Function Documentation

◆ Destroy()

void CGLContextGLX::Destroy ( )
overridevirtual

Implements CGLContext.

◆ Detach()

void CGLContextGLX::Detach ( )
overridevirtual

Implements CGLContext.

◆ IsSuitableVisual()

bool CGLContextGLX::IsSuitableVisual ( XVisualInfo * vInfo)
protected

◆ QueryExtensions()

void CGLContextGLX::QueryExtensions ( )
overridevirtual

Implements CGLContext.

◆ Refresh()

bool CGLContextGLX::Refresh ( bool force,
int screen,
Window glWindow,
bool & newContext )
overridevirtual

Implements CGLContext.

◆ SetVSync()

void CGLContextGLX::SetVSync ( bool enable)
overridevirtual

Implements CGLContext.

◆ SwapBuffers()

void CGLContextGLX::SwapBuffers ( )
overridevirtual

Implements CGLContext.

Member Data Documentation

◆ m_glxContext

GLXContext KODI::WINDOWING::X11::CGLContextGLX::m_glxContext = 0

◆ m_glXGetVideoSyncSGI

int(* KODI::WINDOWING::X11::CGLContextGLX::m_glXGetVideoSyncSGI) (unsigned int *)
protected

◆ m_glXSwapIntervalEXT

PFNGLXSWAPINTERVALEXTPROC KODI::WINDOWING::X11::CGLContextGLX::m_glXSwapIntervalEXT
protected

◆ m_glXSwapIntervalMESA

int(* KODI::WINDOWING::X11::CGLContextGLX::m_glXSwapIntervalMESA) (int)
protected

◆ m_glXWaitVideoSyncSGI

int(* KODI::WINDOWING::X11::CGLContextGLX::m_glXWaitVideoSyncSGI) (int, int, unsigned int *)
protected

◆ m_glxWindow

GLXWindow KODI::WINDOWING::X11::CGLContextGLX::m_glxWindow = 0

◆ m_iVSyncErrors

int KODI::WINDOWING::X11::CGLContextGLX::m_iVSyncErrors
protected

◆ m_nScreen

int KODI::WINDOWING::X11::CGLContextGLX::m_nScreen
protected

◆ m_vsyncMode

int KODI::WINDOWING::X11::CGLContextGLX::m_vsyncMode
protected

The documentation for this class was generated from the following files: