Allows to use a textureId from a separate OpenGL context in a Qt 3D scene. More...
Header: | #include <Qt3DRender/QTexture> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake: | QT += 3drender |
Since: | Qt 5.13 |
Instantiated By: | SharedGLTexture |
Inherits: | Qt3DRender::QAbstractTexture |
int | textureId() const |
void | setTextureId(int id) |
void | textureIdChanged(int textureId) |
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.
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) |
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: