![]()  | 
  
    Qt 6.x
    
   The Qt SDK 
   | 
 
#include <qssgrenderloadedtexture_p.h>
 Collaboration diagram for QSSGLoadedTexture:Public Member Functions | |
| ~QSSGLoadedTexture () | |
| void | setFormatFromComponents () | 
| bool | scanForTransparency () const | 
Static Public Member Functions | |
| static QSSGLoadedTexture * | load (const QString &inPath, const QSSGRenderTextureFormat &inFormat, bool inFlipY=true) | 
| static QSSGLoadedTexture * | loadQImage (const QString &inPath, qint32 flipVertical) | 
| static QSSGLoadedTexture * | loadCompressedImage (const QString &inPath) | 
| static QSSGLoadedTexture * | loadHdrImage (const QSharedPointer< QIODevice > &source, const QSSGRenderTextureFormat &inFormat) | 
| static QSSGLoadedTexture * | loadTextureData (QSSGRenderTextureData *textureData) | 
Public Attributes | |
| qint32 | width = 0 | 
| qint32 | height = 0 | 
| qint32 | depth = 0 | 
| qint32 | components = 0 | 
| void * | data = nullptr | 
| bool | ownsData = true | 
| QTextureFileData | textureFileData | 
| QImage | image | 
| quint32 | dataSizeInBytes = 0 | 
| QSSGRenderTextureFormat | format = QSSGRenderTextureFormat::RGBA8 | 
| bool | isSRGB = false | 
Definition at line 51 of file qssgrenderloadedtexture_p.h.
| QSSGLoadedTexture::~QSSGLoadedTexture | ( | ) | 
Definition at line 806 of file qssgrenderloadedtexture.cpp.
References ownsData.
      
  | 
  static | 
Definition at line 933 of file qssgrenderloadedtexture.cpp.
References fileName, fileType(), QSSGInputUtil::getStreamForTextureFile(), QSSGInputUtil::HdrFile, QString::isEmpty(), loadCompressedImage(), loadCubeMap(), loadHdrImage(), loadQImage(), QSSGInputUtil::TextureFile, and QSSGInputUtil::UnknownFile.
Referenced by QSSGBufferManager::loadLightmap(), and QSSGBufferManager::loadRenderImage().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 310 of file qssgrenderloadedtexture.cpp.
References QImageReader::canRead(), QFileDevice::close(), format, fromGLtoTextureFormat(), QTextureFileData::glFormat(), QTextureFileData::glInternalFormat(), QSize::height(), height, QFile::open(), qWarning, QImageReader::read(), QIODeviceBase::ReadOnly, QTextureFileData::size(), textureFileData, QSize::width(), and width.
Referenced by load().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 700 of file qssgrenderloadedtexture.cpp.
References imageData, QSSGRenderTextureFormat::RGBA16F, and QSSGRenderTextureFormat::Unknown.
Referenced by load(), and renderToKTXFileInternal().
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 291 of file qssgrenderloadedtexture.cpp.
References QImage::bits(), components, data, dataSizeInBytes, height, image, isSRGB, QColorSpace::Linear, loadImage(), setFormatFromComponents(), and width.
Referenced by load().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 723 of file qssgrenderloadedtexture.cpp.
References QSSGRenderTextureFormat::BC6H, QByteArray::data(), QSSGRenderTextureData::depth(), QSSGRenderTextureData::format(), QSSGRenderTextureFormat::getNumberOfComponent(), QSSGRenderTextureFormat::getSizeofFormat(), QSize::height(), imageData, QSSGRenderTextureFormat::isCompressedTextureFormat(), QSSGRenderTextureFormat::RGBA16F, QSSGRenderTextureFormat::RGBA32F, QSSGRenderTextureFormat::RGBE8, QSSGRenderTextureData::size(), QByteArray::size(), QSSGRenderTextureData::textureData(), and QSize::width().
 Here is the call graph for this function:| bool QSSGLoadedTexture::scanForTransparency | ( | ) | const | 
Definition at line 812 of file qssgrenderloadedtexture.cpp.
References QSSGRenderTextureFormat::Alpha8, QSSGRenderTextureFormat::Luminance8, QSSGRenderTextureFormat::LuminanceAlpha8, Q_ASSERT, QSSGRenderTextureFormat::R8, QSSGRenderTextureFormat::RG32F, QSSGRenderTextureFormat::RG8, QSSGRenderTextureFormat::RGB32F, QSSGRenderTextureFormat::RGB565, QSSGRenderTextureFormat::RGB8, QSSGRenderTextureFormat::RGB9E5, QSSGRenderTextureFormat::RGB_DXT1, QSSGRenderTextureFormat::RGBA16F, QSSGRenderTextureFormat::RGBA32F, QSSGRenderTextureFormat::RGBA5551, QSSGRenderTextureFormat::RGBA8, QSSGRenderTextureFormat::RGBA_DXT1, QSSGRenderTextureFormat::RGBA_DXT3, QSSGRenderTextureFormat::RGBA_DXT5, QSSGRenderTextureFormat::RGBE8, QSSGRenderTextureFormat::SRGB8, and QSSGRenderTextureFormat::SRGB8A8.
      
  | 
  inline | 
Definition at line 68 of file qssgrenderloadedtexture_p.h.
References QSSGRenderTextureFormat::R8, QSSGRenderTextureFormat::RG8, QSSGRenderTextureFormat::RGB8, and QSSGRenderTextureFormat::RGBA8.
Referenced by loadCubeMap(), and loadQImage().
 Here is the caller graph for this function:| qint32 QSSGLoadedTexture::components = 0 | 
Definition at line 57 of file qssgrenderloadedtexture_p.h.
Referenced by loadCubeMap(), and loadQImage().
Definition at line 58 of file qssgrenderloadedtexture_p.h.
Referenced by loadCubeMap(), and loadQImage().
| quint32 QSSGLoadedTexture::dataSizeInBytes = 0 | 
Definition at line 62 of file qssgrenderloadedtexture_p.h.
Referenced by loadCubeMap(), and loadQImage().
| qint32 QSSGLoadedTexture::depth = 0 | 
Definition at line 56 of file qssgrenderloadedtexture_p.h.
| QSSGRenderTextureFormat QSSGLoadedTexture::format = QSSGRenderTextureFormat::RGBA8 | 
Definition at line 63 of file qssgrenderloadedtexture_p.h.
Referenced by loadCompressedImage().
| qint32 QSSGLoadedTexture::height = 0 | 
Definition at line 55 of file qssgrenderloadedtexture_p.h.
Referenced by loadCompressedImage(), loadCubeMap(), and loadQImage().
| QImage QSSGLoadedTexture::image | 
Definition at line 61 of file qssgrenderloadedtexture_p.h.
Referenced by loadCubeMap(), and loadQImage().
| bool QSSGLoadedTexture::isSRGB = false | 
Definition at line 65 of file qssgrenderloadedtexture_p.h.
Referenced by loadCubeMap(), and loadQImage().
| bool QSSGLoadedTexture::ownsData = true | 
Definition at line 59 of file qssgrenderloadedtexture_p.h.
Referenced by ~QSSGLoadedTexture().
| QTextureFileData QSSGLoadedTexture::textureFileData | 
Definition at line 60 of file qssgrenderloadedtexture_p.h.
Referenced by loadCompressedImage(), and loadCubeMap().
| qint32 QSSGLoadedTexture::width = 0 | 
Definition at line 54 of file qssgrenderloadedtexture_p.h.
Referenced by loadCompressedImage(), loadCubeMap(), and loadQImage().