Qt
6.x
The Qt SDK
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
10
QT_BEGIN_NAMESPACE
11
12
namespace
QPlatformGraphicsBufferHelper
{
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
17
QT_END_NAMESPACE
18
19
#endif
QPlatformGraphicsBuffer
\inmodule QtGui
Definition
qplatformgraphicsbuffer.h:27
QRect
\inmodule QtCore\reentrant
Definition
qrect.h:30
rect
rect
[4]
Definition
doc_src_styles.cpp:43
QPlatformGraphicsBufferHelper
\inmodule QtGui
QPlatformGraphicsBufferHelper::lockAndBindToTexture
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.
Definition
qplatformgraphicsbufferhelper.cpp:58
QPlatformGraphicsBufferHelper::bindSWToTexture
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.
Definition
qplatformgraphicsbufferhelper.cpp:108
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
qtbase
src
gui
kernel
qplatformgraphicsbufferhelper.h
Generated by
1.9.7