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>.
|
#include <qktxhandler_p.h>
Public Member Functions | |
~QKtxHandler () override | |
QTextureFileData | read () override |
QTextureFileHandler (QIODevice *device, const QByteArray &logName=QByteArray()) | |
Public Member Functions inherited from QTextureFileHandler | |
QTextureFileHandler (QIODevice *device, const QByteArray &logName=QByteArray()) | |
virtual | ~QTextureFileHandler () |
QIODevice * | device () const |
QByteArray | logName () const |
Static Public Member Functions | |
static bool | canRead (const QByteArray &suffix, const QByteArray &block) |
Definition at line 26 of file qktxhandler_p.h.
|
overridedefault |
|
static |
Definition at line 96 of file qktxhandler.cpp.
References ktxIdentifier, Q_UNUSED, and QByteArray::startsWith().
Referenced by QTextureFileReader::canRead(), and read().
|
inline |
Definition at line 25 of file qtexturefilehandler_p.h.
|
overridevirtual |
Implements QTextureFileHandler.
Definition at line 102 of file qktxhandler.cpp.
References canRead(), decode, QTextureFileHandler::device(), header(), QTextureFileHandler::logName(), nearestMultipleOf4(), qAddOverflow(), QByteArray(), qCountLeadingZeroBits(), qDebug, qktxh_headerSize, qWarning, QIODevice::readAll(), safeView(), and QTextureFileData::setData().