TextureNodeRhiOpenGL Class Reference
Implementation of TextureNodeRhi for the OpenGL graphics API. More...
#include <MinimalSceneRhiOpenGL.hh>
Public Member Functions | |
TextureNodeRhiOpenGL (QQuickWindow *_window) | |
Constructor. More... | |
virtual | ~TextureNodeRhiOpenGL () override |
virtual bool | HasNewTexture () const override |
Return true if a new texture has been received from the render thread. More... | |
virtual void | NewTexture (void *_texturePtr, const QSize &_size) override |
This function gets called on the render thread and will store the texture id and size and schedule an update on the window. More... | |
virtual void | PrepareNode () override |
Before the scene graph starts to render, we update to the pending texture. More... | |
virtual QSGTexture * | Texture () const override |
Get the Qt scene graph texture. More... | |
Public Member Functions inherited from TextureNodeRhi | |
virtual | ~TextureNodeRhi () |
Destructor. More... | |
Detailed Description
Implementation of TextureNodeRhi for the OpenGL graphics API.
Constructor & Destructor Documentation
◆ ~TextureNodeRhiOpenGL()
|
overridevirtual |
◆ TextureNodeRhiOpenGL()
TextureNodeRhiOpenGL | ( | QQuickWindow * | _window | ) |
Constructor.
- Parameters
-
[in] _window Window to display the texture
Member Function Documentation
◆ HasNewTexture()
|
overridevirtual |
Return true if a new texture has been received from the render thread.
Implements TextureNodeRhi.
◆ NewTexture()
|
overridevirtual |
This function gets called on the render thread and will store the texture id and size and schedule an update on the window.
- Parameters
-
[in] _texturePtr Pointer to a texture Id [in] _size Texture size
Implements TextureNodeRhi.
◆ PrepareNode()
|
overridevirtual |
Before the scene graph starts to render, we update to the pending texture.
Implements TextureNodeRhi.
◆ Texture()
|
overridevirtual |
Get the Qt scene graph texture.
Implements TextureNodeRhi.
The documentation for this class was generated from the following file: