Vireo  0.0
Vireo 3D Rendering Hardware Interface
Drawing

It's time to draw our triangle!

Add the drawing commands recording in the onRender() method between setScissors() and endRendering() :

frameData.commandList->bindPipeline(pipeline);
frameData.commandList->bindVertexBuffer(vertexBuffer);
frameData.commandList->draw(triangleVertices.size());

If you did everything correctly up to this point, then you should now see something resembling the following when you run your program.

With Vulkan :

triangle_color_vk.png

With DirectX :

triangle_color_dx.png

Next : What's next?


Related manual page : Graphics Pipelines