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
QKtxHandler Class Reference

#include <qktxhandler_p.h>

+ Inheritance diagram for QKtxHandler:
+ Collaboration diagram for QKtxHandler:

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 ()
 
QIODevicedevice () const
 
QByteArray logName () const
 

Static Public Member Functions

static bool canRead (const QByteArray &suffix, const QByteArray &block)
 

Detailed Description

Definition at line 26 of file qktxhandler_p.h.

Constructor & Destructor Documentation

◆ ~QKtxHandler()

QKtxHandler::~QKtxHandler ( )
overridedefault

Member Function Documentation

◆ canRead()

bool QKtxHandler::canRead ( const QByteArray & suffix,
const QByteArray & block )
static

Definition at line 96 of file qktxhandler.cpp.

References ktxIdentifier, Q_UNUSED, and QByteArray::startsWith().

Referenced by QTextureFileReader::canRead(), and read().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ QTextureFileHandler()

QTextureFileHandler::QTextureFileHandler ( QIODevice * device,
const QByteArray & logName = QByteArray() )
inline

Definition at line 25 of file qtexturefilehandler_p.h.

◆ read()

QTextureFileData QKtxHandler::read ( )
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().

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: