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
7
#
include
"qopenvgcontext_p.h"
8
9
QT_BEGIN_NAMESPACE
10
11
class
QOpenVGOffscreenSurface
12
{
13
public
:
14
QOpenVGOffscreenSurface
(
const
QSize &size);
15
~
QOpenVGOffscreenSurface
();
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
24
QImage
readbackQImage
();
25
26
private
:
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
37
QT_END_NAMESPACE
38
39
#
endif
// QOPENVGOFFSCREENSURFACE_H
QOpenVGOffscreenSurface
Definition
qopenvgoffscreensurface.h:12
QOpenVGOffscreenSurface::size
QSize size() const
Definition
qopenvgoffscreensurface.h:22
QOpenVGOffscreenSurface::swapBuffers
void swapBuffers()
Definition
qopenvgoffscreensurface.cpp:76
QOpenVGOffscreenSurface::makeCurrent
void makeCurrent()
Definition
qopenvgoffscreensurface.cpp:53
QOpenVGOffscreenSurface::QOpenVGOffscreenSurface
QOpenVGOffscreenSurface(const QSize &size)
Definition
qopenvgoffscreensurface.cpp:12
QOpenVGOffscreenSurface::~QOpenVGOffscreenSurface
~QOpenVGOffscreenSurface()
Definition
qopenvgoffscreensurface.cpp:46
QOpenVGOffscreenSurface::doneCurrent
void doneCurrent()
Definition
qopenvgoffscreensurface.cpp:65
QOpenVGOffscreenSurface::readbackQImage
QImage readbackQImage()
Definition
qopenvgoffscreensurface.cpp:81
QOpenVGOffscreenSurface::image
VGImage image()
Definition
qopenvgoffscreensurface.h:21
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
qtdeclarative
src
plugins
scenegraph
openvg
qopenvgoffscreensurface.h
Generated on Fri Sep 20 2024 18:25:28 for Qt by
1.12.0