Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QPLATFORMGRAPHICSBUFFERHELPER_H
6
#
define
QPLATFORMGRAPHICSBUFFERHELPER_H
7
8
#
include
<
QtGui
/
qtguiglobal
.
h
>
9
#
include
<
QtGui
/
qpa
/
qplatformgraphicsbuffer
.
h
>
10
11
QT_BEGIN_NAMESPACE
12
13
namespace
QPlatformGraphicsBufferHelper {
14
Q_GUI_EXPORT
bool
lockAndBindToTexture
(QPlatformGraphicsBuffer *graphicsBuffer,
bool
*swizzleRandB,
bool
*premultipliedB,
const
QRect &rect = QRect());
15
bool
bindSWToTexture
(
const
QPlatformGraphicsBuffer *graphicsBuffer,
bool
*swizzleRandB =
nullptr
,
bool
*premultipliedB =
nullptr
,
const
QRect &rect = QRect());
16
}
17
18
QT_END_NAMESPACE
19
20
#
endif
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:59
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:109
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
GL_RGB10_A2
#define GL_RGB10_A2
Definition
qplatformgraphicsbufferhelper.cpp:19
GL_UNSIGNED_INT_2_10_10_10_REV
#define GL_UNSIGNED_INT_2_10_10_10_REV
Definition
qplatformgraphicsbufferhelper.cpp:23
GL_UNPACK_ROW_LENGTH
#define GL_UNPACK_ROW_LENGTH
Definition
qplatformgraphicsbufferhelper.cpp:15
qtbase
src
gui
kernel
qplatformgraphicsbufferhelper.h
Generated on
for Qt by
1.18.0