Gazebo Gui

API Reference

9.0.0~pre1
TextureNodeRhi Class Referenceabstract

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 ~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 TextureNodeRhiMetal, TextureNodeRhiOpenGL, and TextureNodeRhiVulkan.

◆ 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 TextureNodeRhiMetal, TextureNodeRhiOpenGL, and TextureNodeRhiVulkan.

◆ PrepareNode()

virtual void PrepareNode ( )
pure virtual

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

Implemented in TextureNodeRhiMetal, TextureNodeRhiOpenGL, and TextureNodeRhiVulkan.

◆ Texture()

virtual QSGTexture * Texture ( ) const
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: