QSharedGLTexture Class | Qt 3D 5.15.19 (original) (raw)

class Qt3DRender::QSharedGLTexture

Allows to use a textureId from a separate OpenGL context in a Qt 3D scene. More...

This class was introduced in Qt 5.13.

Properties

Public Functions

Public Slots

Signals

Detailed Description

Depending on the rendering mode used by Qt 3D, the shared context will either be:

Any 3rd party engine that shares its context with the Qt 3D renderer can now provide texture ids that will be referenced by the Qt 3D texture.

You can omit specifying the texture properties, Qt 3D will try at runtime to determine what they are. If you know them, you can of course provide them, avoid additional work for Qt 3D.

Keep in mind that if you are using custom materials and shaders, you need to specify the correct sampler type to be used.

Property Documentation

textureId : int

The OpenGL texture id value that you want Qt3D to gain access to.

Access functions:

int textureId() const
void setTextureId(int id)

Notifier signal:

void textureIdChanged(int textureId)

© 2025 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.