QTextureImage Class

(Qt3DRender::QTextureImage)

Encapsulates the necessary information to create an OpenGL texture image from an image source. More...

Header: #include <QTextureImage>
qmake: QT += 3drender
Since: Qt 5.5
Instantiated By: TextureImage
Inherits: Qt3DRender::QAbstractTextureImage

Properties

Public Functions

QTextureImage(Qt3DCore::QNode *parent = Q_NULLPTR)
~QTextureImage()
QUrl source() const

Reimplemented Public Functions

virtual QTextureDataFunctorPtr dataFunctor() const

Public Slots

void setSource(const QUrl &source)

Signals

void sourceChanged(const QUrl &source)

Protected Functions

void copy(const Qt3DCore::QNode *ref)

Additional Inherited Members

Detailed Description

Encapsulates the necessary information to create an OpenGL texture image from an image source.

It contains the necessary information mipmap level, layer, cube face and source URL to load at the proper place data into an OpenGL texture.

Property Documentation

source : QUrl

This property holdsthe source url from which data for the texture image will be loaded.

Access functions:

QUrl source() const
void setSource(const QUrl &source)

Notifier signal:

void sourceChanged(const QUrl &source)

Member Function Documentation

QTextureImage::QTextureImage(Qt3DCore::QNode *parent = Q_NULLPTR)

Default constructs an instance of QTextureImage.

QTextureImage::~QTextureImage()

The destructor.

[protected] void QTextureImage::copy(const Qt3DCore::QNode *ref)

[virtual] QTextureDataFunctorPtr QTextureImage::dataFunctor() const

Reimplemented from QAbstractTextureImage::dataFunctor().

Returns the Qt3DRender::QTextureDataFunctorPtr functor to be used by the backend to load the texture image data into an OpenGL texture object.

[slot] void QTextureImage::setSource(const QUrl &source)

Sets the source url of the texture image to source.

Note: This triggers a call to update()

Note: Setter function for property source.

See also source().

QUrl QTextureImage::source() const

Returns the source url from which data for the texture image will be loaded.

Note: Getter function for property source.

See also setSource().

© 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.