Jump to content
Posted 06 May 2012 - 08:54 PM
Posted 06 May 2012 - 10:13 PM
Thank you for your quick response MJP. It's hard to believe there is no line width/style support in the latest D3D, whereas the same feature was available in OpenGL 1.0. I take a look at DirectXTK and find no direct reference on line rendering. I'll read the DirectXTK documentation later. Anyway, is there any other approach to line width/style rendering. Someone suggest to use geometry shader but does not offer the code sample.
There is no way to adjust line width, the API only provides rendering of 1-pixel-wide lines. If you want something else you'll have to roll your own solution. One possible approach might be to use a sprite renderer to draw your lines.
Posted 06 May 2012 - 11:51 PM