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
qohosplatformbackingstoregl.h
Go to the documentation of this file.
1// Copyright (C) 2025 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 QOHOSPLATFORMBACKINGSTOREGL_H
5#define QOHOSPLATFORMBACKINGSTOREGL_H
6
7#include <QtCore/qglobal.h>
8#include <memory>
9#include <qpa/qplatformbackingstore.h>
10
11QT_BEGIN_NAMESPACE
12
13std::unique_ptr<QPlatformBackingStore> makeGlOhosPlatformBackingStore(QWindow *window);
14
15QT_END_NAMESPACE
16
17#endif
std::enable_if_t< qohosplugincore_h_detail::isQOhosOptional< QOhosInvokeResult< Func, T > >, QOhosInvokeResult< Func, T > > andThen(Func &&func) const
void beginPaint(const QRegion &) override
This function is called before painting onto the surface begins, with the region in which the paintin...
QImage toImage() const override
Implemented in subclasses to return the content of the backingstore as a QImage.
void flush(QWindow *targetWindow, const QRegion &relToParentWindowRegion, const QPoint &relToRootWindowOffset) override
Flushes the given region from the specified window.
void endPaint() override
This function is called after painting onto the surface has ended.
QPaintDevice * paintDevice() override
Implement this function to return the appropriate paint device.
void resize(const QSize &size, const QRegion &staticContents) override
Combined button and popup list for selecting options.
void blitFramebufferToWindow(QOpenGLTextureBlitter &blitter, QOpenGLFramebufferObject &framebuffer, const QRect &srcRect)
void unbindFrameBufferObject(QOpenGLFramebufferObject &fbo)
void unbindTextureBlitter(QOpenGLTextureBlitter &blitter)
void setViewportAndClearColorBuffer(QOpenGLContext &glCtx, const QSize &viewportSize, const QColor &clearColor)
QMatrix3x3 makeSourceTransform(const QRect &targetSubTexture, const QSizeF &srcTextureSize)
std::unique_ptr< QPlatformBackingStore > makeGlOhosPlatformBackingStore(QWindow *window)
QOhosOptional< void > makeEmptyQOhosOptional()
static QOhosOptional< RenderContextData > tryCreateForQWindow(QWindow *window)