Rendering lines using 2 pixels width

Juan Lastra

Newcomer
Joined
Jan 13, 2005
Messages
5
Location
Madrid (Spain)
Hello:
In OpenGL was possible to render the polylines with a variable width.
It is very useful when you want to highlight the lines in one application.
How can we do this in Direct3D ?
By default, all the lines are rendered with 1 pixel width, and setting
the device.RenderState.PointSize don´t have any effect on the render
of lines.

Regards,
Juan Lastra
 
Actually, NO cards support variable width line drawing under D3D. It's just not supported by the API. If it makes you feel better, cards generally don't support it under OpenGL either. The runtime turns the line into a quad and passes it on, which is basically what D3DX.Line does.
 
Back
Top