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
QSSGInputUtil Struct Reference

#include <qssgrenderloadedtexture_p.h>

+ Collaboration diagram for QSSGInputUtil:

Public Types

enum  FileType { UnknownFile , ImageFile , TextureFile , HdrFile }
 

Static Public Member Functions

static QSharedPointer< QIODevicegetStreamForFile (const QString &inPath, bool inQuiet=false, QString *outPath=nullptr)
 
static QSharedPointer< QIODevicegetStreamForTextureFile (const QString &inPath, bool inQuiet=false, QString *outPath=nullptr, FileType *outFileType=nullptr)
 

Detailed Description

Definition at line 36 of file qssgrenderloadedtexture_p.h.

Member Enumeration Documentation

◆ FileType

Enumerator
UnknownFile 
ImageFile 
TextureFile 
HdrFile 

Definition at line 39 of file qssgrenderloadedtexture_p.h.

Member Function Documentation

◆ getStreamForFile()

QT_BEGIN_NAMESPACE QSharedPointer< QIODevice > QSSGInputUtil::getStreamForFile ( const QString & inPath,
bool inQuiet = false,
QString * outPath = nullptr )
static

Definition at line 27 of file qssgrenderloadedtexture.cpp.

References file, QFile::open(), qCWarning, qPrintable, QIODeviceBase::ReadOnly, and QString::startsWith().

Referenced by QSSGShaderLibraryManager::getIncludeContents(), getStreamForTextureFile(), loadCubeMap(), QSSGBufferManager::loadMeshData(), and renderToKTXFileInternal().

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

◆ getStreamForTextureFile()

QSharedPointer< QIODevice > QSSGInputUtil::getStreamForTextureFile ( const QString & inPath,
bool inQuiet = false,
QString * outPath = nullptr,
FileType * outFileType = nullptr )
static

Definition at line 54 of file qssgrenderloadedtexture.cpp.

References getStreamForFile(), HdrFile, ImageFile, qCWarning, qPrintable, QFileInfo::suffix(), QTextureFileReader::supportedFileFormats(), QImageReader::supportedImageFormats(), TextureFile, QString::toLatin1(), QByteArray::toLower(), and UnknownFile.

Referenced by QSSGLoadedTexture::load().

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

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