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
qopenvgoffscreensurface.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 QOPENVGOFFSCREENSURFACE_H
5#define QOPENVGOFFSCREENSURFACE_H
6
8
10
12{
13public:
14 QOpenVGOffscreenSurface(const QSize &size);
16
17 void makeCurrent();
18 void doneCurrent();
19 void swapBuffers();
20
21 VGImage image() { return m_image; }
22 QSize size() const { return m_size; }
23
25
26private:
27 VGImage m_image;
28 QSize m_size;
29 EGLContext m_context;
30 EGLSurface m_renderTarget;
31 EGLContext m_previousContext = EGL_NO_CONTEXT;
32 EGLSurface m_previousReadSurface = EGL_NO_SURFACE;
33 EGLSurface m_previousDrawSurface = EGL_NO_SURFACE;
34 EGLDisplay m_display;
35};
36
37QT_END_NAMESPACE
38
39#endif // QOPENVGOFFSCREENSURFACE_H
QOpenVGOffscreenSurface(const QSize &size)
Combined button and popup list for selecting options.