Render interface class to handle OpenGL / Metal compatibility in TextureNode. More...
#include <MinimalSceneRhi.hh>
Public Member Functions | |
virtual | ~TextureNodeRhi () |
Destructor. More... | |
virtual bool | HasNewTexture () const =0 |
Return true if a new texture has been received from the render thread. More... | |
virtual void | NewTexture (void *_texturePtr, const QSize &_size)=0 |
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 ()=0 |
Before the scene graph starts to render, we update to the pending texture. More... | |
virtual QSGTexture * | Texture () const =0 |
Get the Qt scene graph texture. More... | |
Detailed Description
Render interface class to handle OpenGL / Metal compatibility in TextureNode.
Constructor & Destructor Documentation
◆ ~TextureNodeRhi()
|
virtual |
Destructor.
Member Function Documentation
◆ HasNewTexture()
|
pure virtual |
Return true if a new texture has been received from the render thread.
Implemented in TextureNodeRhiOpenGL, and TextureNodeRhiMetal.
◆ NewTexture()
|
pure virtual |
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
Implemented in TextureNodeRhiOpenGL, and TextureNodeRhiMetal.
◆ PrepareNode()
|
pure virtual |
Before the scene graph starts to render, we update to the pending texture.
Implemented in TextureNodeRhiOpenGL, and TextureNodeRhiMetal.
◆ Texture()
|
pure virtual |
Get the Qt scene graph texture.
Implemented in TextureNodeRhiOpenGL, and TextureNodeRhiMetal.
The documentation for this class was generated from the following file: