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
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
QImage
\inmodule QtGui
Definition
qimage.h:37
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
QSize
\inmodule QtCore
Definition
qsize.h:25
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
EGLSurface
typedef EGLSurface(EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC)(EGLDisplay dpy
EGLDisplay
typedef EGLDisplay(EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC)(EGLenum platform
size
GLenum GLuint GLintptr GLsizeiptr size
[1]
Definition
qopengles2ext.h:660
qopenvgcontext_p.h
qtdeclarative
src
plugins
scenegraph
openvg
qopenvgoffscreensurface.h
Generated by
1.10.0