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
qopenglpixeltransferoptions.h
Go to the documentation of this file.
1
// Copyright (C) 2013 Klaralvdalens Datakonsult AB (KDAB).
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
QOPENGLPIXELUPLOADOPTIONS_H
6
#
define
QOPENGLPIXELUPLOADOPTIONS_H
7
8
#
include
<
QtOpenGL
/
qtopenglglobal
.
h
>
9
10
#
if
!
defined
(
QT_NO_OPENGL
)
11
12
#
include
<
QtCore
/
QSharedDataPointer
>
13
14
QT_BEGIN_NAMESPACE
15
16
class
QOpenGLPixelTransferOptionsData;
17
18
class
Q_OPENGL_EXPORT
QOpenGLPixelTransferOptions
19
{
20
public
:
21
QOpenGLPixelTransferOptions();
22
QOpenGLPixelTransferOptions(
const
QOpenGLPixelTransferOptions &);
23
QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(QOpenGLPixelTransferOptions)
24
QOpenGLPixelTransferOptions &operator=(
const
QOpenGLPixelTransferOptions &);
25
~QOpenGLPixelTransferOptions();
26
27
void
swap(QOpenGLPixelTransferOptions &other)
noexcept
28
{ data.swap(other.data); }
29
30
void
setAlignment(
int
alignment);
31
int
alignment()
const
;
32
33
void
setSkipImages(
int
skipImages);
34
int
skipImages()
const
;
35
36
void
setSkipRows(
int
skipRows);
37
int
skipRows()
const
;
38
39
void
setSkipPixels(
int
skipPixels);
40
int
skipPixels()
const
;
41
42
void
setImageHeight(
int
imageHeight);
43
int
imageHeight()
const
;
44
45
void
setRowLength(
int
rowLength);
46
int
rowLength()
const
;
47
48
void
setLeastSignificantByteFirst(
bool
lsbFirst);
49
bool
isLeastSignificantBitFirst()
const
;
50
51
void
setSwapBytesEnabled(
bool
swapBytes);
52
bool
isSwapBytesEnabled()
const
;
53
54
private
:
55
QSharedDataPointer<QOpenGLPixelTransferOptionsData> data;
56
};
57
58
Q_DECLARE_SHARED
(
QOpenGLPixelTransferOptions
)
59
60
QT_END_NAMESPACE
61
62
#
endif
// QT_NO_OPENGL
63
64
#
endif
// QOPENGLPIXELUPLOADOPTIONS_H
QOpenGLPixelTransferOptions
\inmodule QtOpenGL
Definition
qopenglpixeltransferoptions.h:19
qtbase
src
opengl
qopenglpixeltransferoptions.h
Generated on
for Qt by
1.18.0