microsoft / DirectXTK

The DirectX Tool Kit (aka DirectXTK) is a collection of helper classes for writing DirectX 11.x code in C++
https://walbourn.github.io/directxtk/
MIT License
2.57k stars 511 forks source link

Drawing ellipse #79

Closed kreuzerkrieg closed 7 years ago

kreuzerkrieg commented 7 years ago

Is there a way to draw ellipse using DirectXTK?

walbourn commented 7 years ago

Drawing ellipse and other vector-graphics shapes is a job best done with Direct2D which is explicitly designed for this kind of 'presentation graphics'. In games, typically such shapes are just drawn by an artist into a bitmap and then rendered as a texture sprite.

On DirectX 11.1 or later, Direct2D interop with Direct3D 11 is very easy so you shouldn't have a lot of trouble getting it to work. See Direct2D and Direct3D Interoperability Overview.

If you are on Windows 7, see DirectX 11.1 and Windows 7 Update.

If you are developing an Universal Windows Platform (UWP) app, then you should consider using Win2D as a wrapper for Direct2D.

kreuzerkrieg commented 7 years ago

Thanks Chuck!