Jump to content
Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.
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
GameDev.net™, the GameDev.net logo, and GDNet™ are trademarks of GameDev.net, LLC.