File indexing completed on 2025-02-21 10:12:16
0001
0002
0003
0004 #ifndef QOPENGLPIXELUPLOADOPTIONS_H
0005 #define QOPENGLPIXELUPLOADOPTIONS_H
0006
0007 #include <QtOpenGL/qtopenglglobal.h>
0008
0009 #if !defined(QT_NO_OPENGL)
0010
0011 #include <QtCore/QSharedDataPointer>
0012
0013 QT_BEGIN_NAMESPACE
0014
0015 class QOpenGLPixelTransferOptionsData;
0016
0017 class Q_OPENGL_EXPORT QOpenGLPixelTransferOptions
0018 {
0019 public:
0020 QOpenGLPixelTransferOptions();
0021 QOpenGLPixelTransferOptions(const QOpenGLPixelTransferOptions &);
0022 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(QOpenGLPixelTransferOptions)
0023 QOpenGLPixelTransferOptions &operator=(const QOpenGLPixelTransferOptions &);
0024 ~QOpenGLPixelTransferOptions();
0025
0026 void swap(QOpenGLPixelTransferOptions &other) noexcept
0027 { data.swap(other.data); }
0028
0029 void setAlignment(int alignment);
0030 int alignment() const;
0031
0032 void setSkipImages(int skipImages);
0033 int skipImages() const;
0034
0035 void setSkipRows(int skipRows);
0036 int skipRows() const;
0037
0038 void setSkipPixels(int skipPixels);
0039 int skipPixels() const;
0040
0041 void setImageHeight(int imageHeight);
0042 int imageHeight() const;
0043
0044 void setRowLength(int rowLength);
0045 int rowLength() const;
0046
0047 void setLeastSignificantByteFirst(bool lsbFirst);
0048 bool isLeastSignificantBitFirst() const;
0049
0050 void setSwapBytesEnabled(bool swapBytes);
0051 bool isSwapBytesEnabled() const;
0052
0053 private:
0054 QSharedDataPointer<QOpenGLPixelTransferOptionsData> data;
0055 };
0056
0057 Q_DECLARE_SHARED(QOpenGLPixelTransferOptions)
0058
0059 QT_END_NAMESPACE
0060
0061 #endif
0062
0063 #endif