Unsolved Draw lines with shader program using the new Rendering Hardware Interface
-
Hi!
In Qt5.14 there is the Rendering Hardware interface (Rhi) for .QtQuick.
I would like to use Rhi to draw lines with a Shader program similar to what's shown in this OpenGL example:
https://doc.qt.io/qt-5/qtgui-openglwindow-example.html
In the example, each vertices has its own color and it uses glDrawArrays(GL_TRIANGLES, 0, 3) to draw those vertices (surely Rhi has a generic function other than calling an OpenGL function).I've been looking around and was unable to navigate an example or a starting point. Does anyone know where to look into to learn to achieve the above example using Rhi?
-
Hi,
This blog page provide some links to a demo project. It might be what you are looking for.
Hope it helps