C#/ .NET Component in master

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
paroj
OGRE Team Member
OGRE Team Member
Posts: 2106
Joined: Sun Mar 30, 2014 2:51 pm
x 1132

C#/ .NET Component in master

Post 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.
User avatar
Zonder
Ogre Magi
Posts: 1172
Joined: Mon Aug 04, 2008 7:51 pm
Location: Manchester - England
x 76

Re: C#/ .NET Component in master

Post 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?
There are 10 types of people in the world: Those who understand binary, and those who don't...
paroj
OGRE Team Member
OGRE Team Member
Posts: 2106
Joined: Sun Mar 30, 2014 2:51 pm
x 1132

Re: C#/ .NET Component in master

Post 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.
User avatar
Zonder
Ogre Magi
Posts: 1172
Joined: Mon Aug 04, 2008 7:51 pm
Location: Manchester - England
x 76

Re: C#/ .NET Component in master

Post 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
There are 10 types of people in the world: Those who understand binary, and those who don't...
paroj
OGRE Team Member
OGRE Team Member
Posts: 2106
Joined: Sun Mar 30, 2014 2:51 pm
x 1132

Re: C#/ .NET Component in master

Post 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.