Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Missing "Affine" binding for C Sharp?
#1
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?
Reply
#2
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)