This example uses the Vortice.Direct3D11 (https://github.com/amerkoleci/Vortice.Windows) library to draw primitives in a WinForms window.
Some code parts are taken from: https://github.com/amerkoleci/Vortice.Windows.Samples. Thank you.
Examples shown in tool:
- Grid of lines
- Text (DirectWrite, Direct2D)
- Cube (Textured)
- Line (Multicolor)
How to build?
- Just download the solution and open in Visual Studio, build and run (I used VS2022)