Tilengine - The 2D retro graphics engine forum

Full Version: Missing "Affine" binding for C Sharp?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm just converting the C samples over to C Sharp as an exercise, and I noticed there's a C Sharp binding for, say, Palette from TFN_Palette, but I don't see one for TFN_Affine.

Oh I suppose if I finish converting the samples I can upload them as more C Sharp samples.

Actually I noticed the C Sharp binding for Palette doesn't look that complicated, maybe you can give me enough info about what's missing that I could finish any similar missing bindings myself and commit them for you?
In the beginning there was void TLN_SetLayerAffineTransform() that received a TLN_Affine struct. But then I added the TLN_SetLayerTransform() function that receives the same parameters individually, not packed in a struct. And when I created the C# binding, I ignored the original function and only wrapped the newer, that doesn't use the TLN_Affine struct, that is the Layer::SetTransform() method. Look at line 1000 of https://github.com/megamarc/Tilengine/bl...lengine.cs. So in short this is a redundant struct that is not really needed in the original C API.