Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CGLContext Class Referenceabstract

#include <GLContext.h>

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

Public Member Functions

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

Public Attributes

std::string m_extPrefix
 
std::string m_extensions
 
Display * m_dpy
 

Protected Attributes

bool m_omlSync = true
 

Constructor & Destructor Documentation

◆ CGLContext()

CGLContext::CGLContext ( Display * dpy)
inlineexplicit

◆ ~CGLContext()

virtual CGLContext::~CGLContext ( )
virtualdefault

Member Function Documentation

◆ CreatePB()

virtual bool CGLContext::CreatePB ( )
inlinevirtual

Reimplemented in CGLContextEGL.

◆ Destroy()

virtual void CGLContext::Destroy ( )
pure virtual

◆ Detach()

virtual void CGLContext::Detach ( )
pure virtual

◆ ExtPrefix()

const std::string & CGLContext::ExtPrefix ( ) const
inline

◆ GetVblankTiming()

virtual uint64_t CGLContext::GetVblankTiming ( uint64_t & msc,
uint64_t & interval )
inlinevirtual

Reimplemented in CGLContextEGL.

◆ IsExtSupported()

bool CGLContext::IsExtSupported ( const char * extension) const

◆ QueryExtensions()

virtual void CGLContext::QueryExtensions ( )
pure virtual

◆ Refresh()

virtual bool CGLContext::Refresh ( bool force,
int screen,
Window glWindow,
bool & newContext )
pure virtual

◆ SetVSync()

virtual void CGLContext::SetVSync ( bool enable)
pure virtual

◆ SwapBuffers()

virtual void CGLContext::SwapBuffers ( )
pure virtual

Member Data Documentation

◆ m_dpy

Display* CGLContext::m_dpy

◆ m_extensions

std::string CGLContext::m_extensions

◆ m_extPrefix

std::string CGLContext::m_extPrefix

◆ m_omlSync

bool CGLContext::m_omlSync = true
protected

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