Page 1 of 1

C#/ .NET Component in master

Posted: Thu Dec 13, 2018 9:48 pm
by paroj
I finally came to finishing the Csharp bindings which now join Java and Python as an official Component.

see here for an example and instructions how to build/ use it:
https://github.com/OGRECave/ogre/tree/m ... les/Csharp

While this component replaces MOGRE, no efforts were spent on backwards compatibility. Notably you have to use getters/ setters instead of properties.

Also I only tested this with Mono on Linux, so additional testing on Windows would be very welcome.

Re: C#/ .NET Component in master

Posted: Fri Dec 14, 2018 10:48 am
by Zonder
This will be more like the other OGRE bbindings can't remember what they are called :S than MOGRE

There are some 2.0 bindings for ogre as well https://github.com/amerkoleci/mogre NON OFFICIAL

How would the compatability be for v2 with the binding generation?

Re: C#/ .NET Component in master

Posted: Fri Dec 14, 2018 11:49 am
by paroj
yes these binding are SWIG based - like the others.

Using SWIG for v2 is possible - however changes required on the C++ side, so the port is non-trivial. Currently I have no plans to do the port to v2.

Re: C#/ .NET Component in master

Posted: Fri Dec 14, 2018 1:10 pm
by Zonder
No wasn't expecting you to do it ;)

Could you detail whats needed though? I may have a look don't actually need them but may get bored over christmas haha :D

Re: C#/ .NET Component in master

Posted: Fri Dec 14, 2018 2:10 pm
by paroj
things like this:
https://github.com/OGRECave/ogre/commit ... 5ae8b80552

you will mostly only find them as you try to use the bindings.

Also I recall the C# bindings particularly did not work correctly with custom memory allocators that were removed with 1.11.