Gazebo Gui

API Reference

9.0.0~pre1
TextureNodeRhiVulkan Class Reference

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

#include <MinimalSceneRhiVulkan.hh>

Public Member Functions

 TextureNodeRhiVulkan (QQuickWindow *_window, rendering::CameraPtr &_camera)
 Constructor.
 
virtual ~TextureNodeRhiVulkan () override
 
virtual bool HasNewTexture () const override
 Return true if a new texture has been received from the render thread.
 
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.
 
virtual void PrepareNode () override
 Before the scene graph starts to render, we update to the pending texture.
 
virtual QSGTexture * Texture () const override
 Get the Qt scene graph texture.
 
- Public Member Functions inherited from TextureNodeRhi
virtual ~TextureNodeRhi ()
 Destructor.
 

Detailed Description

Implementation of TextureNodeRhi for the Vulkan graphics API.

Constructor & Destructor Documentation

◆ ~TextureNodeRhiVulkan()

virtual ~TextureNodeRhiVulkan ( )
overridevirtual

◆ TextureNodeRhiVulkan()

TextureNodeRhiVulkan ( QQuickWindow *  _window,
rendering::CameraPtr &  _camera 
)
explicit

Constructor.

Parameters
[in]_windowWindow to display the texture
[in]_cameraCamera owning the API texture handle

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: