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
qplatformgraphicsbufferhelper.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 QPLATFORMGRAPHICSBUFFERHELPER_H
5#define QPLATFORMGRAPHICSBUFFERHELPER_H
6
7#include <QtGui/qtguiglobal.h>
8#include <QtGui/qpa/qplatformgraphicsbuffer.h>
9
11
13 Q_GUI_EXPORT bool lockAndBindToTexture(QPlatformGraphicsBuffer *graphicsBuffer, bool *swizzleRandB, bool *premultipliedB, const QRect &rect = QRect());
14 bool bindSWToTexture(const QPlatformGraphicsBuffer *graphicsBuffer, bool *swizzleRandB = nullptr, bool *premultipliedB = nullptr, const QRect &rect = QRect());
15}
16
18
19#endif
\inmodule QtCore\reentrant
Definition qrect.h:30
rect
[4]
Q_GUI_EXPORT bool lockAndBindToTexture(QPlatformGraphicsBuffer *graphicsBuffer, bool *swizzleRandB, bool *premultipliedB, const QRect &rect=QRect())
Convenience function to both lock and bind the graphicsBuffer to a texture.
bool bindSWToTexture(const QPlatformGraphicsBuffer *graphicsBuffer, bool *swizzleRandB=nullptr, bool *premultipliedB=nullptr, const QRect &rect=QRect())
Convenience function that uploads the current raster content to the currently bound texture.
Combined button and popup list for selecting options.