![]() |
Qt 6.x
The Qt SDK
|
#include <qtexturefiledata_p.h>
Public Types | |
enum | Mode { ByteArrayMode , ImageMode } |
Friends | |
Q_GUI_EXPORT QDebug | operator<< (QDebug dbg, const QTextureFileData &d) |
Definition at line 30 of file qtexturefiledata_p.h.
Enumerator | |
---|---|
ByteArrayMode | |
ImageMode |
Definition at line 33 of file qtexturefiledata_p.h.
QTextureFileData::QTextureFileData | ( | Mode | mode = ByteArrayMode | ) |
Definition at line 83 of file qtexturefiledata.cpp.
References QTextureFileDataPrivate::mode.
QTextureFileData::QTextureFileData | ( | const QTextureFileData & | other | ) |
Definition at line 89 of file qtexturefiledata.cpp.
QTextureFileData::~QTextureFileData | ( | ) |
Definition at line 100 of file qtexturefiledata.cpp.
void QTextureFileData::clear | ( | ) |
Definition at line 146 of file qtexturefiledata.cpp.
QByteArray QTextureFileData::data | ( | ) | const |
Definition at line 151 of file qtexturefiledata.cpp.
References QTextureFileDataPrivate::data.
Referenced by setData().
int QTextureFileData::dataLength | ( | int | level = 0 , |
int | face = 0 |
||
) | const |
Definition at line 184 of file qtexturefiledata.cpp.
References ByteArrayMode, QTextureFileDataPrivate::getLength(), QTextureFileDataPrivate::isValid(), QTextureFileDataPrivate::mode, and Q_ASSERT.
Referenced by getDataView().
int QTextureFileData::dataOffset | ( | int | level = 0 , |
int | face = 0 |
||
) | const |
Definition at line 169 of file qtexturefiledata.cpp.
References ByteArrayMode, QTextureFileDataPrivate::getOffset(), QTextureFileDataPrivate::isValid(), QTextureFileDataPrivate::mode, and Q_ASSERT.
Referenced by getDataView().
QByteArrayView QTextureFileData::getDataView | ( | int | level = 0 , |
int | face = 0 |
||
) | const |
Definition at line 190 of file qtexturefiledata.cpp.
References ByteArrayMode, QByteArray::constData(), QTextureFileDataPrivate::data, dataLength(), dataOffset(), QTextureFileDataPrivate::images, QTextureFileDataPrivate::isValid(), and QTextureFileDataPrivate::mode.
Referenced by QSGCompressedTexture::commitTextureOperations(), QSGRhiAtlasTexture::Manager::create(), and QSGCompressedTextureFactory::textureByteCount().
quint32 QTextureFileData::glBaseInternalFormat | ( | ) | const |
Definition at line 272 of file qtexturefiledata.cpp.
References QTextureFileDataPrivate::baseInternalFormat.
quint32 QTextureFileData::glFormat | ( | ) | const |
Definition at line 250 of file qtexturefiledata.cpp.
References QTextureFileDataPrivate::format.
Referenced by QSSGLoadedTexture::loadCompressedImage().
quint32 QTextureFileData::glInternalFormat | ( | ) | const |
Definition at line 261 of file qtexturefiledata.cpp.
References QTextureFileDataPrivate::internalFormat.
Referenced by QSGCompressedTexture::QSGCompressedTexture(), QSGCompressedTexture::commitTextureOperations(), and QSSGLoadedTexture::loadCompressedImage().
bool QTextureFileData::isNull | ( | ) | const |
Definition at line 104 of file qtexturefiledata.cpp.
bool QTextureFileData::isValid | ( | ) | const |
Definition at line 109 of file qtexturefiledata.cpp.
References QVarLengthArray< T, Prealloc >::at(), QTextureFileDataPrivate::data, QTextureFileDataPrivate::format, QTextureFileDataPrivate::getLength(), QTextureFileDataPrivate::getOffset(), ImageMode, QTextureFileDataPrivate::internalFormat, QByteArray::isEmpty(), QSize::isEmpty(), QTextureFileDataPrivate::lengths, QTextureFileDataPrivate::mode, QTextureFileDataPrivate::numFaces, QTextureFileDataPrivate::numLevels, QTextureFileDataPrivate::offsets, QByteArray::size(), QList< T >::size(), QVLABaseBase::size(), and QTextureFileDataPrivate::size.
Referenced by QSGCompressedTexture::commitTextureOperations(), QSGCompressedTextureFactory::createTexture(), QSGTextureReader::read(), QKtxHandler::read(), and QPkmHandler::read().
QMap< QByteArray, QByteArray > QTextureFileData::keyValueMetadata | ( | ) | const |
Definition at line 294 of file qtexturefiledata.cpp.
References QTextureFileDataPrivate::keyValues.
QByteArray QTextureFileData::logName | ( | ) | const |
Definition at line 283 of file qtexturefiledata.cpp.
References QTextureFileDataPrivate::logName.
Referenced by QSGCompressedTexture::commitTextureOperations().
int QTextureFileData::numFaces | ( | ) | const |
Definition at line 228 of file qtexturefiledata.cpp.
References QTextureFileDataPrivate::numFaces.
Referenced by QKtxHandler::read(), and setNumFaces().
int QTextureFileData::numLevels | ( | ) | const |
Definition at line 217 of file qtexturefiledata.cpp.
References QTextureFileDataPrivate::numLevels.
Referenced by QKtxHandler::read(), and setNumLevels().
QTextureFileData & QTextureFileData::operator= | ( | const QTextureFileData & | other | ) |
Definition at line 94 of file qtexturefiledata.cpp.
References other().
void QTextureFileData::setData | ( | const QByteArray & | data | ) |
Definition at line 156 of file qtexturefiledata.cpp.
References ByteArrayMode, QTextureFileDataPrivate::data, data(), QTextureFileDataPrivate::mode, and Q_ASSERT.
Referenced by QAstcHandler::read(), QKtxHandler::read(), QPkmHandler::read(), and QSGCompressedAtlasTexture::Texture::removedFromAtlas().
Definition at line 162 of file qtexturefiledata.cpp.
References QTextureFileDataPrivate::ensureSize(), ImageMode, QTextureFileDataPrivate::images, QTextureFileDataPrivate::mode, and Q_ASSERT.
void QTextureFileData::setDataLength | ( | int | length, |
int | level = 0 , |
||
int | face = 0 |
||
) |
Definition at line 208 of file qtexturefiledata.cpp.
References ByteArrayMode, QSharedDataPointer< T >::constData(), QTextureFileDataPrivate::ensureSize(), QTextureFileDataPrivate::mode, Q_ASSERT, and QTextureFileDataPrivate::setLength().
Referenced by QKtxHandler::read(), QPkmHandler::read(), and QSGCompressedAtlasTexture::Texture::removedFromAtlas().
void QTextureFileData::setDataOffset | ( | int | offset, |
int | level = 0 , |
||
int | face = 0 |
||
) |
Definition at line 175 of file qtexturefiledata.cpp.
References ByteArrayMode, QSharedDataPointer< T >::constData(), QTextureFileDataPrivate::ensureSize(), QTextureFileDataPrivate::mode, Q_ASSERT, and QTextureFileDataPrivate::setOffset().
Referenced by QKtxHandler::read(), QPkmHandler::read(), and QSGCompressedAtlasTexture::Texture::removedFromAtlas().
Definition at line 277 of file qtexturefiledata.cpp.
References QTextureFileDataPrivate::baseInternalFormat, and QSharedDataPointer< T >::constData().
Referenced by QKtxHandler::read().
Definition at line 255 of file qtexturefiledata.cpp.
References QSharedDataPointer< T >::constData(), and QTextureFileDataPrivate::format.
Referenced by QKtxHandler::read(), and QPkmHandler::read().
Definition at line 266 of file qtexturefiledata.cpp.
References QSharedDataPointer< T >::constData(), and QTextureFileDataPrivate::internalFormat.
Referenced by QKtxHandler::read(), QPkmHandler::read(), and QSGCompressedAtlasTexture::Texture::removedFromAtlas().
void QTextureFileData::setKeyValueMetadata | ( | const QMap< QByteArray, QByteArray > & | keyValues | ) |
Definition at line 299 of file qtexturefiledata.cpp.
References QTextureFileDataPrivate::keyValues.
Referenced by QKtxHandler::read().
void QTextureFileData::setLogName | ( | const QByteArray & | name | ) |
Definition at line 288 of file qtexturefiledata.cpp.
References QSharedDataPointer< T >::constData(), and QTextureFileDataPrivate::logName.
Referenced by QAstcHandler::read(), QKtxHandler::read(), and QPkmHandler::read().
void QTextureFileData::setNumFaces | ( | int | num | ) |
Definition at line 233 of file qtexturefiledata.cpp.
References QTextureFileDataPrivate::ensureSize(), numFaces(), and QTextureFileDataPrivate::numLevels.
Referenced by QKtxHandler::read(), and QPkmHandler::read().
void QTextureFileData::setNumLevels | ( | int | num | ) |
Definition at line 222 of file qtexturefiledata.cpp.
References QTextureFileDataPrivate::ensureSize(), QTextureFileDataPrivate::numFaces, and numLevels().
Referenced by QKtxHandler::read(), and QPkmHandler::read().
Definition at line 244 of file qtexturefiledata.cpp.
References QSharedDataPointer< T >::constData(), QTextureFileDataPrivate::size, and size().
Referenced by QAstcHandler::read(), QKtxHandler::read(), QPkmHandler::read(), and QSGCompressedAtlasTexture::Texture::removedFromAtlas().
QSize QTextureFileData::size | ( | ) | const |
Definition at line 239 of file qtexturefiledata.cpp.
References QTextureFileDataPrivate::size.
Referenced by QSGCompressedTexture::QSGCompressedTexture(), QSSGLoadedTexture::loadCompressedImage(), setSize(), and QSGCompressedTextureFactory::textureSize().
|
friend |
Definition at line 310 of file qtexturefiledata.cpp.