You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
OpenGLControlBase has two rendering stages executed in the following order:
Avalonia's own Render method
OnOpenGlRender
This is probably useful in some scenarios where you want to overlay openGL on top of avalonia controls.
The problem I have is that I am working on a CAD application where I need to render some 2D overlays and toolings on top of openGL, and it makes sense to do so using Avalonia instead of GL
But right now, to do so, I need to create an extra canvas control on top of the OpenGLControlBase, where I could simply use OpenGLControlBase itself, if the Avalonia's rendering happens after GL rendering.
Describe the solution you'd like
I would like to have a boolean property in OpenGLControlBase to indicate the Avalonia's and OpenGL rendering order, so when set, Avalonia's Render is drawn on top of OnOpenGlRender draw.
Describe alternatives you've considered
Right now I am creating an additional Canvas control on top of OpenGlControlBase
The drawback is, being two controls, the wiring is a lot more complex because what I am redering in both layers must match
Additional context
No response
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
OpenGLControlBase has two rendering stages executed in the following order:
Render
methodOnOpenGlRender
This is probably useful in some scenarios where you want to overlay openGL on top of avalonia controls.
The problem I have is that I am working on a CAD application where I need to render some 2D overlays and toolings on top of openGL, and it makes sense to do so using Avalonia instead of GL
But right now, to do so, I need to create an extra canvas control on top of the
OpenGLControlBase
, where I could simply useOpenGLControlBase
itself, if the Avalonia's rendering happens after GL rendering.Describe the solution you'd like
I would like to have a boolean property in
OpenGLControlBase
to indicate the Avalonia's and OpenGL rendering order, so when set, Avalonia'sRender
is drawn on top ofOnOpenGlRender
draw.Describe alternatives you've considered
Right now I am creating an additional Canvas control on top of
OpenGlControlBase
The drawback is, being two controls, the wiring is a lot more complex because what I am redering in both layers must match
Additional context
No response
The text was updated successfully, but these errors were encountered: