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
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
7#include "qopenvgcontext_p.h"
8
10
12{
13public:
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
38
39#endif // QOPENVGOFFSCREENSURFACE_H
\inmodule QtGui
Definition qimage.h:37
QOpenVGOffscreenSurface(const QSize &size)
\inmodule QtCore
Definition qsize.h:25
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]