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

#include <qastchandler_p.h>

+ Inheritance diagram for QAstcHandler:
+ Collaboration diagram for QAstcHandler:

Public Member Functions

 ~QAstcHandler () 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 22 of file qastchandler_p.h.

Constructor & Destructor Documentation

◆ ~QAstcHandler()

QAstcHandler::~QAstcHandler ( )
overridedefault

Member Function Documentation

◆ canRead()

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

Definition at line 28 of file qastchandler.cpp.

References 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 QAstcHandler::read ( )
overridevirtual

Implements QTextureFileHandler.

Definition at line 74 of file qastchandler.cpp.

References canRead(), QByteArray::constData(), QTextureFileHandler::device(), header(), QTextureFileHandler::logName(), QByteArray(), qCDebug, qDebug, qMulOverflow(), QIODevice::readAll(), and QByteArray::size().

+ Here is the call graph for this function:

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