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
qminimaleglbackingstore.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 QMINIMALEGLBACKINGSTORE_H
5#define QMINIMALEGLBACKINGSTORE_H
6
7#include <qpa/qplatformbackingstore.h>
8
10
11class QOpenGLContext;
13
15{
16public:
19
20 QPaintDevice *paintDevice() override;
21
22 void beginPaint(const QRegion &) override;
23 void endPaint() override;
24
25 void flush(QWindow *window, const QRegion &region, const QPoint &offset) override;
26 void resize(const QSize &size, const QRegion &staticContents) override;
27
28private:
29 QOpenGLContext *m_context;
30 QOpenGLPaintDevice *m_device;
31};
32
34
35#endif // QMINIMALEGLBACKINGSTORE_H
void endPaint() override
This function is called after painting onto the surface has ended.
void resize(const QSize &size, const QRegion &staticContents) override
QPaintDevice * paintDevice() override
Implement this function to return the appropriate paint device.
void flush(QWindow *window, const QRegion &region, const QPoint &offset) override
Flushes the given region from the specified window.
void beginPaint(const QRegion &) override
This function is called before painting onto the surface begins, with the region in which the paintin...
\inmodule QtGui
The QOpenGLPaintDevice class enables painting to an OpenGL context using QPainter.
The QPlatformBackingStore class provides the drawing area for top-level windows.
QWindow * window() const
Returns a pointer to the top-level window associated with this surface.
\inmodule QtCore\reentrant
Definition qpoint.h:25
The QRegion class specifies a clip region for a painter.
Definition qregion.h:27
\inmodule QtCore
Definition qsize.h:25
\inmodule QtGui
Definition qwindow.h:63
Combined button and popup list for selecting options.
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLuint GLintptr offset