Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QEglFSContext Class Reference

#include <qeglfscontext_p.h>

+ Inheritance diagram for QEglFSContext:
+ Collaboration diagram for QEglFSContext:

Public Member Functions

 QEglFSContext ()=default
 
 QEglFSContext (const QSurfaceFormat &format, QPlatformOpenGLContext *share, EGLDisplay display, EGLConfig *config)
 
EGLSurface eglSurfaceForPlatformSurface (QPlatformSurface *surface) override
 
EGLSurface createTemporaryOffscreenSurface () override
 
void destroyTemporaryOffscreenSurface (EGLSurface surface) override
 
void runGLChecks () override
 
void swapBuffers (QPlatformSurface *surface) override
 Reimplement in subclass to native swap buffers calls.
 
 QEGLPlatformContext (const QSurfaceFormat &format, QPlatformOpenGLContext *share, EGLDisplay display, EGLConfig *config=nullptr, Flags flags={ })
 
 QEGLPlatformContext ()
 
- Public Member Functions inherited from QEGLPlatformContext
 QEGLPlatformContext (const QSurfaceFormat &format, QPlatformOpenGLContext *share, EGLDisplay display, EGLConfig *config=nullptr, Flags flags={ })
 
 ~QEGLPlatformContext ()
 
void initialize () override
 Called after a new instance is constructed.
 
bool makeCurrent (QPlatformSurface *surface) override
 
void doneCurrent () override
 
void swapBuffers (QPlatformSurface *surface) override
 Reimplement in subclass to native swap buffers calls.
 
QFunctionPointer getProcAddress (const char *procName) override
 Reimplement in subclass to allow dynamic querying of OpenGL symbols.
 
QSurfaceFormat format () const override
 
bool isSharing () const override
 
bool isValid () const override
 
EGLContext nativeContext () const override
 
EGLConfig config () const override
 
EGLDisplay display () const override
 
virtual void invalidateContext () override
 
EGLContext eglContext () const
 
EGLDisplay eglDisplay () const
 
EGLConfig eglConfig () const
 
- Public Member Functions inherited from QPlatformOpenGLContext
 QPlatformOpenGLContext ()
 
virtual ~QPlatformOpenGLContext ()
 
virtual GLuint defaultFramebufferObject (QPlatformSurface *surface) const
 Reimplement in subclass if your platform uses framebuffer objects for surfaces.
 
virtual void beginFrame ()
 Called when the RHI begins rendering a new frame in the context.
 
virtual void endFrame ()
 Called when the RHI ends rendering a in the context.
 
QOpenGLContextcontext () const
 

Public Attributes

QEglFSCursorData cursorData
 

Additional Inherited Members

- Public Types inherited from QEGLPlatformContext
enum  Flag { NoSurfaceless = 0x01 }
 
- Static Public Member Functions inherited from QEGLPlatformContext
template<typename T >
static QOpenGLContextcreateFrom (EGLContext context, EGLDisplay contextDisplay, EGLDisplay platformDisplay, QOpenGLContext *shareContext)
 
- Static Public Member Functions inherited from QPlatformOpenGLContext
static bool parseOpenGLVersion (const QByteArray &versionString, int &major, int &minor)
 
- Protected Member Functions inherited from QEGLPlatformContext
 QEGLPlatformContext ()
 

Detailed Description

Definition at line 25 of file qeglfscontext_p.h.

Constructor & Destructor Documentation

◆ QEglFSContext() [1/2]

QEglFSContext::QEglFSContext ( )
default

◆ QEglFSContext() [2/2]

QT_BEGIN_NAMESPACE QEglFSContext::QEglFSContext ( const QSurfaceFormat & format,
QPlatformOpenGLContext * share,
EGLDisplay display,
EGLConfig * config )

Definition at line 16 of file qeglfscontext.cpp.

Member Function Documentation

◆ createTemporaryOffscreenSurface()

EGLSurface QEglFSContext::createTemporaryOffscreenSurface ( )
overridevirtual

Reimplemented from QEGLPlatformContext.

Definition at line 40 of file qeglfscontext.cpp.

References QEglFSDeviceIntegration::createNativeOffscreenWindow(), QEGLPlatformContext::createTemporaryOffscreenSurface(), QEGLPlatformContext::eglDisplay(), QEGLPlatformContext::format(), q_configFromGLFormat(), qt_egl_device_integration(), and qWarning.

+ Here is the call graph for this function:

◆ destroyTemporaryOffscreenSurface()

void QEglFSContext::destroyTemporaryOffscreenSurface ( EGLSurface surface)
overridevirtual

Reimplemented from QEGLPlatformContext.

Definition at line 56 of file qeglfscontext.cpp.

References QEglFSDeviceIntegration::destroyNativeWindow(), QEGLPlatformContext::destroyTemporaryOffscreenSurface(), QEGLPlatformContext::eglDisplay(), and qt_egl_device_integration().

+ Here is the call graph for this function:

◆ eglSurfaceForPlatformSurface()

EGLSurface QEglFSContext::eglSurfaceForPlatformSurface ( QPlatformSurface * surface)
overridevirtual

Implements QEGLPlatformContext.

Definition at line 23 of file qeglfscontext.cpp.

References EGLSurface(), QPlatformSurface::surface(), QSurface::surfaceClass(), and QSurface::Window.

+ Here is the call graph for this function:

◆ QEGLPlatformContext() [1/2]

QEGLPlatformContext::QEGLPlatformContext ( )
inline

Definition at line 85 of file qeglplatformcontext_p.h.

◆ QEGLPlatformContext() [2/2]

QEGLPlatformContext::QEGLPlatformContext ( const QSurfaceFormat & format,
QPlatformOpenGLContext * share,
EGLDisplay display,
EGLConfig * config = nullptr,
Flags flags = { } )

Definition at line 36 of file qeglplatformcontext.cpp.

◆ runGLChecks()

void QEglFSContext::runGLChecks ( )
overridevirtual

Reimplemented from QEGLPlatformContext.

Definition at line 67 of file qeglfscontext.cpp.

References qWarning, and renderer.

◆ swapBuffers()

void QEglFSContext::swapBuffers ( QPlatformSurface * surface)
overridevirtual

Reimplement in subclass to native swap buffers calls.

The implementation must support being called in a thread different than the gui-thread.

Implements QPlatformOpenGLContext.

Definition at line 77 of file qeglfscontext.cpp.

References cursor, QEglFSDeviceIntegration::presentBuffer(), qt_egl_device_integration(), QPlatformSurface::surface(), QSurface::surfaceClass(), QEGLPlatformContext::swapBuffers(), QEglFSDeviceIntegration::waitForVSync(), QSurface::Window, and window().

+ Here is the call graph for this function:

Member Data Documentation

◆ cursorData

QEglFSCursorData QEglFSContext::cursorData

Definition at line 38 of file qeglfscontext_p.h.


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