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