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.55k stars 506 forks source link

Request/question: Add a Vector4/floating point overload for the spritebatch's draw function #411

Open star69rem opened 10 months ago

star69rem commented 10 months ago

I wanted to be able to clip a sprite with floating point precision, so I added an overload that uses a Vector4 instead of a RECT for the source rectangle. The current implementation converts from RECT to floating point values anyway. Do you think you could add this at some point?