Search code examples
gdiwin32gui

Win32/GDI coloring a triangle


I am making a series of triangles to represent a 3D shape using the vertices and the LineTo() and MoveTo() functions.

What is the best way to colour/fill these triangles?

Thanks


Solution

  • MSDN has a sample that draws shaded triangles.