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
qqnxglcontext.cpp
Go to the documentation of this file.
1// Copyright (C) 2011 - 2013 BlackBerry Limited. All rights reserved.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include "qqnxglcontext.h"
5#include "qqnxintegration.h"
6#include "qqnxscreen.h"
7#include "qqnxeglwindow.h"
8
9#include "private/qeglconvenience_p.h"
10
11#include <QtCore/QDebug>
12#include <QtGui/QOpenGLContext>
13#include <QtGui/QScreen>
14
15#include <dlfcn.h>
16
18
19Q_LOGGING_CATEGORY(lcQpaGLContext, "qt.qpa.glcontext");
20
21static QEGLPlatformContext::Flags makeFlags()
22{
23 QEGLPlatformContext::Flags result = {};
24
27
28 return result;
29}
30
36
40
42{
43 QQnxEglWindow *window = static_cast<QQnxEglWindow *>(surface);
44 window->ensureInitialized(this);
45 return window->surface();
46}
47
49{
50 qCDebug(lcQpaGLContext) << Q_FUNC_INFO;
52}
53
55{
56 qCDebug(lcQpaGLContext) << Q_FUNC_INFO;
57
59
60 QQnxEglWindow *platformWindow = static_cast<QQnxEglWindow*>(surface);
61 platformWindow->windowPosted();
62}
63
68
An EGL context implementation.
void swapBuffers(QPlatformSurface *surface) override
Reimplement in subclass to native swap buffers calls.
bool makeCurrent(QPlatformSurface *surface) override
The QPlatformOpenGLContext class provides an abstraction for native GL contexts.
The QPlatformSurface class provides an abstraction for a surface.
void doneCurrent() override
bool makeCurrent(QPlatformSurface *surface) override
EGLSurface eglSurfaceForPlatformSurface(QPlatformSurface *surface) override
virtual ~QQnxGLContext()
QQnxGLContext(const QSurfaceFormat &format, QPlatformOpenGLContext *share)
void swapBuffers(QPlatformSurface *surface) override
Reimplement in subclass to native swap buffers calls.
static QQnxIntegration * instance()
void windowPosted()
The QSurfaceFormat class represents the format of a QSurface. \inmodule QtGui.
Combined button and popup list for selecting options.
#define Q_FUNC_INFO
typedef EGLSurface(EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC)(EGLDisplay dpy
#define Q_LOGGING_CATEGORY(name,...)
#define qCDebug(category,...)
GLint GLsizei GLsizei GLenum format
GLuint64EXT * result
[6]
static QEGLPlatformContext::Flags makeFlags()
bool testFlag(MaskType mask, FlagType flag)
QObject::connect nullptr
aWidget window() -> setWindowTitle("New Window Title")
[2]