Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Draw lines with shader program using the new Rendering Hardware Interface
Thinium last edited by Thinium
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:
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?
This blog page provide some links to a demo project. It might be what you are looking for.
Hope it helps