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

#include <qtexturefilereader_p.h>

+ Collaboration diagram for QTextureFileReader:

Public Member Functions

 QTextureFileReader (QIODevice *device, const QString &fileName=QString())
 
 ~QTextureFileReader ()
 
bool canRead ()
 
QTextureFileData read ()
 

Static Public Member Functions

static QList< QByteArraysupportedFileFormats ()
 

Detailed Description

Definition at line 27 of file qtexturefilereader_p.h.

Constructor & Destructor Documentation

◆ QTextureFileReader()

QTextureFileReader::QTextureFileReader ( QIODevice * device,
const QString & fileName = QString() )

Definition at line 16 of file qtexturefilereader.cpp.

◆ ~QTextureFileReader()

QTextureFileReader::~QTextureFileReader ( )

Definition at line 21 of file qtexturefilereader.cpp.

Member Function Documentation

◆ canRead()

bool QTextureFileReader::canRead ( )

Definition at line 33 of file qtexturefilereader.cpp.

References QAstcHandler::canRead(), QKtxHandler::canRead(), QPkmHandler::canRead(), QIODevice::peek(), and QByteArray::toLower().

Referenced by QSGTextureReader::isTexture(), and read().

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

◆ read()

QTextureFileData QTextureFileReader::read ( )

Definition at line 26 of file qtexturefilereader.cpp.

References canRead(), and QTextureFileHandler::read().

Referenced by QSGTextureReader::read().

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

◆ supportedFileFormats()

QList< QByteArray > QTextureFileReader::supportedFileFormats ( )
static

Definition at line 58 of file qtexturefilereader.cpp.

References QByteArrayLiteral.

Referenced by QSSGInputUtil::getStreamForTextureFile(), QWaylandTextureSharingExtension::initialize(), and QSGTextureReader::supportedFileFormats().

+ Here is the caller graph for this function:

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