Reputation: 1
I need to draw a set of lines using a given colour. I have seen many samples that uses pixel shader and fx files. My requirement is bit simpler. I need to draw a set of lines (LineStrip) using a given vertices by a provided colour. I don't want to use any pixel shader mechanisms of a fx file. In Direct3D9 I have a Line object and I was well managed to implement it. But when I moved to Direct3D11 I am trapped. Kindly please tell me how to draw lines, rectangles and Polygons (filled with colour). I tried with VertexPositionColor but couldn't succeed. Please help!!!! Thanks in advance.
Upvotes: 0
Views: 1590
Reputation: 8824
The fixed pipeline does not exist anymore with DX11. You have to use a vertex and a pixel shader.
Upvotes: 1