Drawing lines with adjustable color in Managed DirectX (C#)

How would I go about drawing the outline of a box with Managed DirectX (C#) which I can easily change the color of I have a vertexbuffer set up with the relevent vertex's, and can draw an outline using linestrip. However, I can't work out how to change the color. Currently it uses a texture, which means I need to load in a bitmap of the relevent color, which limits the range of colors and requires resources.


Answer this question

Drawing lines with adjustable color in Managed DirectX (C#)

  • PQuintas

    It should work if you use a vertex type that include color.

    Or use the D3DX Line class.



  • Drawing lines with adjustable color in Managed DirectX (C#)