user1386596
user1386596

Reputation: 1

How to draw coloured Lines and polygons using Directx11 without fx file?

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

Answers (1)

galop1n
galop1n

Reputation: 8824

The fixed pipeline does not exist anymore with DX11. You have to use a vertex and a pixel shader.

Upvotes: 1

Related Questions