QTextureLoader Class
class Qt3DRender::QTextureLoaderHandles the texture loading and setting the texture's properties. More...
Header: | #include <Qt3DRender/QTexture> |
qmake: | QT += 3drender |
Instantiated By: | TextureLoader |
Inherits: | Qt3DRender::QAbstractTexture |
Public Functions
QTextureLoader(Qt3DCore::QNode *parent = nullptr) | |
void | setMirrored(bool mirrored) |
void | setSource(const QUrl &source) |
Detailed Description
Member Function Documentation
QTextureLoader::QTextureLoader(Qt3DCore::QNode *parent = nullptr)
Constructs a new Qt3DRender::QTextureLoader instance with parent as parent.
Note that by default, if not contradicted by the file metadata, the loaded texture will have the following properties set: - wrapMode set to Repeat - minificationFilter set to LinearMipMapLinear - magnificationFilter set to Linear - generateMipMaps set to true - maximumAnisotropy set to 16.0f - target set to TargetAutomatic
void QTextureLoader::setMirrored(bool mirrored)
Sets mirroring to mirrored.
Note: This internally triggers a call to update the data generator.
void QTextureLoader::setSource(const QUrl &source)
Sets the texture loader source to source. source