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
qopenglpixeltransferoptions.cpp
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
5#include <QSharedData>
6
8
50
58
66
71{
72 if (this != &rhs)
73 data.operator=(rhs.data);
74 return *this;
75}
76
83
92
97{
98 return data->alignment;
99}
100
107{
108 data->skipImages = skipImages;
109}
110
115{
116 return data->skipImages;
117}
118
125{
126 data->skipRows = skipRows;
127}
128
133{
134 return data->skipRows;
135}
136
143{
144 data->skipPixels = skipPixels;
145}
146
151{
152 return data->skipPixels;
153}
154
161{
162 data->imageHeight = imageHeight;
163}
164
169{
170 return data->imageHeight;
171}
172
179{
180 data->rowLength = rowLength;
181}
182
187{
188 return data->rowLength;
189}
190
198{
199 data->lsbFirst = lsbFirst;
200}
201
206{
207 return data->lsbFirst;
208}
209
216{
217 data->swapBytes = swapBytes;
218}
219
224{
225 return data->swapBytes;
226}
227
void setSkipPixels(int skipPixels)
Sets the number of pixels that are skipped to skipPixels.
QOpenGLPixelTransferOptions & operator=(const QOpenGLPixelTransferOptions &)
void setRowLength(int rowLength)
Sets the number of pixels in a row to rowLength.
void setImageHeight(int imageHeight)
Sets the image height for 3D textures to imageHeight.
void setSwapBytesEnabled(bool swapBytes)
swapBytes specifies if the byte ordering for multibyte components is reversed.
QOpenGLPixelTransferOptions()
Constructs a new QOpenGLPixelTransferOptions instance with the default settings.
void setSkipRows(int skipRows)
Sets the number of rows that are skipped to skipRows.
void setLeastSignificantByteFirst(bool lsbFirst)
lsbFirst specifies if bits within a byte are ordered from least to most significat.
void setAlignment(int alignment)
Sets the alignment requirements for each pixel row.
void setSkipImages(int skipImages)
Sets the number of images that are skipped to skipImages.
\inmodule QtCore
Definition qshareddata.h:19
uint alignment
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data