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
qopenvgcontext_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QOPENVGCONTEXT_H
5#define QOPENVGCONTEXT_H
6
7#include <QtGui/QWindow>
8#include <QtGui/QImage>
9
10#include <EGL/egl.h>
11#include <VG/openvg.h>
12
14
16{
17public:
20
21 void makeCurrent();
22 void makeCurrent(EGLSurface surface);
23 void doneCurrent();
24 void swapBuffers();
25 void swapBuffers(EGLSurface surface);
26
27
28 QWindow *window() const;
29
30 EGLDisplay eglDisplay() { return m_display; }
31 EGLConfig eglConfig() { return m_config; }
32 EGLContext eglContext() { return m_context; }
33
35
36 void getConfigs();
37
38 static void checkErrors();
39
40private:
41 EGLSurface m_surface;
42 EGLDisplay m_display;
43 EGLConfig m_config;
44 EGLContext m_context;
45
46 QWindow *m_window;
47
48};
49
51
52#endif // QOPENVGCONTEXT_H
\inmodule QtGui
Definition qimage.h:37
QWindow * window() const
EGLConfig eglConfig()
EGLDisplay eglDisplay()
static void checkErrors()
QImage readFramebuffer(const QSize &size)
EGLContext eglContext()
QOpenVGContext(QWindow *window)
\inmodule QtCore
Definition qsize.h:25
\inmodule QtGui
Definition qwindow.h:63
Combined button and popup list for selecting options.
typedef EGLSurface(EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC)(EGLDisplay dpy
typedef EGLDisplay(EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC)(EGLenum platform
GLenum GLuint GLintptr GLsizeiptr size
[1]