Computer Science Canada

XNA Line Segments

Author:  Wolf_Destiny [ Tue Mar 13, 2007 12:50 pm ]
Post subject:  XNA Line Segments

Has anyone written or found previously an XNA compatible line drawing function. I've looked around, and information/explanations for drawing 2d primitives in XNA are seriously lacking. I took a look at the Microsoft HowTo on 2D primatives, but it isn't very well commented. So back to my original question, does anyone have a function similar to:
code:
public void drawline (int x1,int y1,int x2, int y2, int colour)
{}
Or even:
code:
public void drawline (Vertex3 point1, Vertex3 point2, int colour)
{}

~Wolf_Destiny


: