18 #ifndef GZ_GUI_PLUGINS_MINIMALSCENE_MINIMALSCENERHIOPENGL_HH_
19 #define GZ_GUI_PLUGINS_MINIMALSCENE_MINIMALSCENERHIOPENGL_HH_
24 #include <QQuickWindow>
31 namespace gz::gui::plugins
34 class GzCameraTextureRhiOpenGLPrivate;
49 public:
virtual void TextureId(
void* _texturePtr)
override;
56 class RenderThreadRhiOpenGLPrivate;
69 public:
virtual QOffscreenSurface *Surface()
const override;
72 public:
virtual void SetSurface(QOffscreenSurface *_surface)
override;
75 public:
virtual QOpenGLContext *Context()
const override;
78 public:
virtual void SetContext(QOpenGLContext *_context)
override;
84 public:
virtual void RenderNext(RenderSync *_renderSync)
override;
87 public:
virtual void* TexturePtr()
const override;
90 public:
virtual QSize TextureSize()
const override;
93 public:
virtual void ShutDown()
override;
106 class TextureNodeRhiOpenGLPrivate;
119 public:
virtual QSGTexture *Texture()
const override;
122 public:
virtual bool HasNewTexture()
const override;
125 public:
virtual void NewTexture(
126 void* _texturePtr,
const QSize &_size)
override;
129 public:
virtual void PrepareNode()
override;
142 #endif // GZ_GUI_PLUGINS_MINIMALSCENE_MINIMALSCENERHIOPENGL_HH_