Qt 6.x
The Qt SDK
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 26 of file qssgrenderloadedtexture.cpp.

References QFileInfo::canonicalFilePath(), QFileInfo::exists(), fi, file, QFileInfo::isNativePath(), QString::mid(), QFile::open(), QString::prepend(), qCWarning, qPrintable, QIODeviceBase::ReadOnly, QFileInfo::setFile(), 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 53 of file qssgrenderloadedtexture.cpp.

References QListSpecialMethodsBase< T >::contains(), ext, 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: