Kuesa Runtime

TextureCollection Class

class Kuesa::TextureCollection

A collection of assets of type Qt3DRender::QAbstractTexture. More...

Header: #include <Kuesa/TextureCollection>
Since: Kuesa 1.0
Inherits: Kuesa::AbstractAssetCollection

This class was introduced in Kuesa 1.0.

Public Functions

Qt3DRender::QTextureLoader *add(const QString &name, const QUrl &source)

Detailed Description

Kuesa::TextureCollection manages a set of Qt3DRender::QAbstractTexture assets.

Member Function Documentation

Qt3DRender::QTextureLoader *TextureCollection::add(const QString &name, const QUrl &source)

Utility method to create an instance of Qt3DRender::QTextureLoader for the source and register it in the collection with the name.

The generated instance is parented with the collection and returned to the caller.