Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QQnxGLContext Class Reference

#include <qqnxglcontext.h>

Inheritance diagram for QQnxGLContext:
Collaboration diagram for QQnxGLContext:

Public Member Functions

 QQnxGLContext (const QSurfaceFormat &format, QPlatformOpenGLContext *share)
virtual ~QQnxGLContext ()
bool makeCurrent (QPlatformSurface *surface) override
void swapBuffers (QPlatformSurface *surface) override
 Reimplement in subclass to native swap buffers calls.
void doneCurrent () override
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.
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

Protected Member Functions

EGLSurface eglSurfaceForPlatformSurface (QPlatformSurface *surface) override
Protected Member Functions inherited from QEGLPlatformContext
 QEGLPlatformContext ()
virtual EGLSurface createTemporaryOffscreenSurface ()
virtual void destroyTemporaryOffscreenSurface (EGLSurface surface)
virtual void runGLChecks ()
bool checkGraphicsReset ()

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)

Detailed Description

Definition at line 19 of file qqnxglcontext.h.

Constructor & Destructor Documentation

◆ QQnxGLContext()

QQnxGLContext::QQnxGLContext ( const QSurfaceFormat & format,
QPlatformOpenGLContext * share )

Definition at line 31 of file qqnxglcontext.cpp.

References QQnxGLContext().

Referenced by QQnxGLContext().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~QQnxGLContext()

QQnxGLContext::~QQnxGLContext ( )
virtual

Definition at line 37 of file qqnxglcontext.cpp.

Member Function Documentation

◆ doneCurrent()

void QQnxGLContext::doneCurrent ( )
overridevirtual

Reimplemented from QEGLPlatformContext.

Definition at line 64 of file qqnxglcontext.cpp.

Referenced by QQnxEglWindow::ensureInitialized().

Here is the caller graph for this function:

◆ eglSurfaceForPlatformSurface()

EGLSurface QQnxGLContext::eglSurfaceForPlatformSurface ( QPlatformSurface * surface)
overrideprotectedvirtual

Implements QEGLPlatformContext.

Definition at line 41 of file qqnxglcontext.cpp.

References QQnxEglWindow::ensureInitialized(), and QQnxEglWindow::surface().

Here is the call graph for this function:

◆ makeCurrent()

bool QQnxGLContext::makeCurrent ( QPlatformSurface * surface)
overridevirtual

Reimplemented from QEGLPlatformContext.

Definition at line 48 of file qqnxglcontext.cpp.

◆ swapBuffers()

void QQnxGLContext::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.

Reimplemented from QEGLPlatformContext.

Definition at line 54 of file qqnxglcontext.cpp.

References QQnxWindow::windowPosted().

Here is the call graph for this function:

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