Gazebo Gui

API Reference

8.3.0
TextureNodeRhi Class Referenceabstract

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 ~TextureNodeRhi ( )
virtual

Destructor.

Member Function Documentation

◆ HasNewTexture()

virtual bool HasNewTexture ( ) const
pure virtual

Return true if a new texture has been received from the render thread.

Implemented in TextureNodeRhiOpenGL, and TextureNodeRhiMetal.

◆ NewTexture()

virtual void NewTexture ( void *  _texturePtr,
const QSize _size 
)
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]_texturePtrPointer to a texture Id
[in]_sizeTexture size

Implemented in TextureNodeRhiOpenGL, and TextureNodeRhiMetal.

◆ PrepareNode()

virtual void PrepareNode ( )
pure virtual

Before the scene graph starts to render, we update to the pending texture.

Implemented in TextureNodeRhiOpenGL, and TextureNodeRhiMetal.

◆ Texture()

virtual QSGTexture* Texture ( ) const
pure virtual

Get the Qt scene graph texture.

Implemented in TextureNodeRhiOpenGL, and TextureNodeRhiMetal.


The documentation for this class was generated from the following file: