KWin
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
KWin::EglContext Class Reference

#include <eglcontext.h>

Inheritance diagram for KWin::EglContext:
KWin::OpenGlContext

Public Member Functions

 EglContext (EglDisplay *display, EGLConfig config, ::EGLContext context)
 
 ~EglContext () override
 
bool makeCurrent (EGLSurface surface=EGL_NO_SURFACE) const
 
void doneCurrent () const
 
std::shared_ptr< GLTextureimportDmaBufAsTexture (const DmaBufAttributes &attributes) const
 
EglDisplaydisplayObject () const
 
::EGLContext handle () const
 
EGLConfig config () const
 
bool isValid () const
 
ShaderManagershaderManager () const
 
- Public Member Functions inherited from KWin::OpenGlContext
 OpenGlContext ()
 
virtual ~OpenGlContext ()=default
 
bool hasVersion (const Version &version) const
 
QByteArrayView openglVersionString () const
 
Version openglVersion () const
 
QByteArrayView vendor () const
 
QByteArrayView renderer () const
 
bool isOpenglES () const
 
bool hasOpenglExtension (QByteArrayView name) const
 
bool isSoftwareRenderer () const
 
bool supportsTimerQueries () const
 
bool checkSupported () const
 

Static Public Member Functions

static std::unique_ptr< EglContextcreate (EglDisplay *display, EGLConfig config, ::EGLContext sharedContext)
 

Additional Inherited Members

- Protected Member Functions inherited from KWin::OpenGlContext
bool checkTimerQuerySupport () const
 
- Protected Attributes inherited from KWin::OpenGlContext
const QByteArrayView m_versionString
 
const Version m_version
 
const QByteArrayView m_vendor
 
const QByteArrayView m_renderer
 
const bool m_isOpenglES
 
const QSet< QByteArray > m_extensions
 
const bool m_supportsTimerQueries
 

Detailed Description

Definition at line 25 of file eglcontext.h.

Constructor & Destructor Documentation

◆ EglContext()

KWin::EglContext::EglContext ( EglDisplay * display,
EGLConfig config,
::EGLContext context )

Definition at line 42 of file eglcontext.cpp.

◆ ~EglContext()

KWin::EglContext::~EglContext ( )
override

Definition at line 56 of file eglcontext.cpp.

Member Function Documentation

◆ config()

EGLConfig KWin::EglContext::config ( ) const

Definition at line 87 of file eglcontext.cpp.

◆ create()

std::unique_ptr< EglContext > KWin::EglContext::create ( EglDisplay * display,
EGLConfig config,
::EGLContext sharedContext )
static

Definition at line 25 of file eglcontext.cpp.

◆ displayObject()

EglDisplay * KWin::EglContext::displayObject ( ) const

Definition at line 77 of file eglcontext.cpp.

◆ doneCurrent()

void KWin::EglContext::doneCurrent ( ) const

Definition at line 72 of file eglcontext.cpp.

◆ handle()

EGLContext KWin::EglContext::handle ( ) const

Definition at line 82 of file eglcontext.cpp.

◆ importDmaBufAsTexture()

std::shared_ptr< GLTexture > KWin::EglContext::importDmaBufAsTexture ( const DmaBufAttributes & attributes) const

Definition at line 196 of file eglcontext.cpp.

◆ isValid()

bool KWin::EglContext::isValid ( ) const

Definition at line 92 of file eglcontext.cpp.

◆ makeCurrent()

bool KWin::EglContext::makeCurrent ( EGLSurface surface = EGL_NO_SURFACE) const

Definition at line 67 of file eglcontext.cpp.

◆ shaderManager()

ShaderManager * KWin::EglContext::shaderManager ( ) const

Definition at line 208 of file eglcontext.cpp.


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