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
qopengltextureuploader_p.h
Go to the documentation of this file.
1
// Copyright (C) 2018 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
//
5
// W A R N I N G
6
// -------------
7
//
8
// This file is not part of the Qt API. It exists purely as an
9
// implementation detail. This header file may change from version to
10
// version without notice, or even be removed.
11
//
12
// We mean it.
13
//
14
15
#
ifndef
QOPENGLTEXTUREUPLOADER_P_H
16
#
define
QOPENGLTEXTUREUPLOADER_P_H
17
18
#
include
<
QtCore
/
qsize
.
h
>
19
#
include
<
QtOpenGL
/
qtopenglglobal
.
h
>
20
#
include
<
QtGui
/
private
/
qopenglcontext_p
.
h
>
21
22
QT_BEGIN_NAMESPACE
23
24
class
QImage;
25
26
class
Q_OPENGL_EXPORT
QOpenGLTextureUploader
27
{
28
public
:
29
enum
BindOption {
30
NoBindOption = 0x0000,
31
PremultipliedAlphaBindOption = 0x0001,
32
UseRedForAlphaAndLuminanceBindOption = 0x0002,
33
SRgbBindOption = 0x0004,
34
PowerOfTwoBindOption = 0x0008
35
};
36
Q_DECLARE_FLAGS(BindOptions, BindOption)
37
Q_FLAGS(BindOptions)
38
39
static
qsizetype textureImage(GLenum target,
const
QImage &image, BindOptions options, QSize maxSize = QSize());
40
41
};
42
43
Q_DECLARE_OPERATORS_FOR_FLAGS(QOpenGLTextureUploader::BindOptions)
44
45
QT_END_NAMESPACE
46
47
#
endif
QOpenGLTextureUploader
Definition
qopengltextureuploader_p.h:27
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
GL_TEXTURE_SWIZZLE_G
#define GL_TEXTURE_SWIZZLE_G
Definition
qopenglext.h:1549
GL_BGR
#define GL_BGR
Definition
qopenglext.h:96
GL_RGBA16F
#define GL_RGBA16F
Definition
qopenglext.h:913
GL_TEXTURE_SWIZZLE_A
#define GL_TEXTURE_SWIZZLE_A
Definition
qopenglext.h:1551
GL_BGRA
#define GL_BGRA
Definition
qopenglext.h:97
GL_SRGB_ALPHA
#define GL_SRGB_ALPHA
Definition
qopenglext.h:864
GL_TEXTURE_SWIZZLE_B
#define GL_TEXTURE_SWIZZLE_B
Definition
qopenglext.h:1550
GL_HALF_FLOAT
#define GL_HALF_FLOAT
Definition
qopenglext.h:1094
GL_RGBA32F
#define GL_RGBA32F
Definition
qopenglext.h:911
GL_SRGB
#define GL_SRGB
Definition
qopenglext.h:862
GL_UNSIGNED_INT_8_8_8_8_REV
#define GL_UNSIGNED_INT_8_8_8_8_REV
Definition
qopenglext.h:94
GL_TEXTURE_SWIZZLE_R
#define GL_TEXTURE_SWIZZLE_R
Definition
qopenglext.h:1548
GL_RGBA16
#define GL_RGBA16
Definition
qopenglframebufferobject.cpp:101
GL_BLUE
#define GL_BLUE
Definition
qopengltextureuploader.cpp:25
GL_RGB10_A2
#define GL_RGB10_A2
Definition
qplatformgraphicsbufferhelper.cpp:18
GL_UNSIGNED_INT_2_10_10_10_REV
#define GL_UNSIGNED_INT_2_10_10_10_REV
Definition
qplatformgraphicsbufferhelper.cpp:22
GL_RED
#define GL_RED
Definition
qrhigles2.cpp:218
qtbase
src
opengl
qopengltextureuploader_p.h
Generated on Mon Mar 10 2025 00:43:46 for Qt by
1.13.2