Gazebo Gui

API Reference

8.3.0
TextureNodeRhiMetal Class Reference

Implementation of TextureNodeRhi for the Metal graphics API. More...

#include <MinimalSceneRhiMetal.hh>

Public Member Functions

 TextureNodeRhiMetal (QQuickWindow *_window)
 Constructor. More...
 
virtual ~TextureNodeRhiMetal () 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 Metal graphics API.

Constructor & Destructor Documentation

◆ ~TextureNodeRhiMetal()

virtual ~TextureNodeRhiMetal ( )
overridevirtual

◆ TextureNodeRhiMetal()

TextureNodeRhiMetal ( QQuickWindow *  _window)
explicit

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: