- Qt 5.15
- Qt GUI
- C++ Classes
- QOpenGLTexture
- Qt 5.15.19 Reference Documentation

# Obsolete Members for QOpenGLTexture

The following members of class QOpenGLTexture are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

## Public Functions

`(obsolete)` void | setCompressedData(int mipLevel, int layer, CubeMapFace cubeFace, int dataSize, void *data, const QOpenGLPixelTransferOptions *const options = nullptr)
`(obsolete)` void | setCompressedData(int mipLevel, int layer, int dataSize, void *data, const QOpenGLPixelTransferOptions *const options = nullptr)
`(obsolete)` void | setCompressedData(int mipLevel, int dataSize, void *data, const QOpenGLPixelTransferOptions *const options = nullptr)
`(obsolete)` void | setCompressedData(int dataSize, void *data, const QOpenGLPixelTransferOptions *const options = nullptr)
`(obsolete)` void | setData(int mipLevel, int layer, CubeMapFace cubeFace, PixelFormat sourceFormat, PixelType sourceType, void *data, const QOpenGLPixelTransferOptions *const options = nullptr)
`(obsolete)` void | setData(int mipLevel, int layer, PixelFormat sourceFormat, PixelType sourceType, void *data, const QOpenGLPixelTransferOptions *const options = nullptr)
`(obsolete)` void | setData(int mipLevel, PixelFormat sourceFormat, PixelType sourceType, void *data, const QOpenGLPixelTransferOptions *const options = nullptr)
`(obsolete)` void | setData(PixelFormat sourceFormat, PixelType sourceType, void *data, const QOpenGLPixelTransferOptions *const options = nullptr)

## Member Function Documentation

### void QOpenGLTexture::setCompressedData(int mipLevel, int layer, CubeMapFace cubeFace, int dataSize, void *data, const QOpenGLPixelTransferOptions *const options = nullptr)

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

This is an overloaded function.

### void QOpenGLTexture::setCompressedData(int mipLevel, int layer, int dataSize, void *data, const QOpenGLPixelTransferOptions *const options = nullptr)

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

This is an overloaded function.

### void QOpenGLTexture::setCompressedData(int mipLevel, int dataSize, void *data, const QOpenGLPixelTransferOptions *const options = nullptr)

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

This is an overloaded function.

### void QOpenGLTexture::setCompressedData(int dataSize, void *data, const QOpenGLPixelTransferOptions *const options = nullptr)

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

This is an overloaded function.

### void QOpenGLTexture::setData(int mipLevel, int layer, CubeMapFace cubeFace, PixelFormat sourceFormat, PixelType sourceType, void *data, const QOpenGLPixelTransferOptions *const options = nullptr)

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

This is an overloaded function.

See also setCompressedData().

### void QOpenGLTexture::setData(int mipLevel, int layer, PixelFormat sourceFormat, PixelType sourceType, void *data, const QOpenGLPixelTransferOptions *const options = nullptr)

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

This is an overloaded function.

### void QOpenGLTexture::setData(int mipLevel, PixelFormat sourceFormat, PixelType sourceType, void *data, const QOpenGLPixelTransferOptions *const options = nullptr)

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

This is an overloaded function.

### void QOpenGLTexture::setData(PixelFormat sourceFormat, PixelType sourceType, void *data, const QOpenGLPixelTransferOptions *const options = nullptr)

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

This is an overloaded function.