Original Post
Hi all, I'm currently learning directX in c# after coming from an openGL C++ background. My codes running fine, mainly using 2D routines, however I need to draw a dashed line! Sounds simple right? At the moment I have a vertex array with DrawUserPrimitives(PrimitiveType.LineList), however, I need to draw an outline with dashed lines. I can't seem to find anything; the Line class seems helpful however I've been unable to get it to work with the current view matrix. One solution I've thought of is to draw the outlines first (before any drawing is on screen) then use a pixel shader to make them dashed. This seems overly complex, surely there's another way? I have a feeling it's something to do witht he render state, but have been unable to find anything related. Can any one shed some light for me?