{I+=codeWee;}
[C++] DirectX: Drawing screen space lines in DirectX 11

Use D3D11_PRIMITIVE_TOPOLOGY_LINESTRIP or D3D11_PRIMITIVE_TOPOLOGY_LINELIST!

deviceContext->IASetPrimitiveTopology(D3D11_PRIMITIVE_TOPOLOGY_LINESTRIP);

or

deviceContext->IASetPrimitiveTopology(D3D11_PRIMITIVE_TOPOLOGY_LINELIST);
HTML | PHP | C++ | DirectX11 | Javascript | C# | HTML5 | ASP | SQL | General | CSS | Oculus Rift | Unity3d | Virtools SDK | Tip | NSIS | PowerShell | node.js | Web API | RTSP | All
Copyright© 2016 CodeWee.com All rights reserved.