amerkoleci / Vortice.Windows

.NET bindings for Direct3D12, Direct3D11, WIC, Direct2D1, XInput, XAudio, X3DAudio, DXC, Direct3D9 and DirectInput.
MIT License
1.01k stars 73 forks source link

DirectXCollision.h #253

Closed Kharzette closed 2 years ago

Kharzette commented 2 years ago

I noticed basic BoundingSphere, Frustum and such are generated, but they are missing alot of functions, such as some of the flavours of contains and intersects that might be just raw functions rather than methods.

I had a look at it but I'm a total novice at SharpGen. It looks really tricky with all that vectorcall and __m128 types and such. Can SharpGen handle stuff like that?

amerkoleci commented 2 years ago

I'm not generating those types using SharpGen but handwritten, take look here:

https://github.com/amerkoleci/Vortice.Mathematics/blob/main/src/Vortice.Mathematics/BoundingFrustum.cs

Kharzette commented 2 years ago

Lovely thanks! I guess I assumed it was generated when go-to-reference was metadata.