Gazebo Gui

API Reference

7.2.2
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()

virtual ~TextureNodeRhiOpenGL ( )
overridevirtual

◆ TextureNodeRhiOpenGL()

TextureNodeRhiOpenGL ( QQuickWindow *  _window)

Constructor.

Parameters
[in]_windowWindow to display the texture

Member Function Documentation

◆ HasNewTexture()

virtual bool HasNewTexture ( ) const
overridevirtual

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

Implements TextureNodeRhi.

◆ NewTexture()

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

Implements TextureNodeRhi.

◆ PrepareNode()

virtual void PrepareNode ( )
overridevirtual

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

Implements TextureNodeRhi.

◆ Texture()

virtual QSGTexture* Texture ( ) const
overridevirtual

Get the Qt scene graph texture.

Implements TextureNodeRhi.


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