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.
Post Reply
paroj
OGRE Team Member
OGRE Team Member
Posts: 817
Joined: Sun Mar 30, 2014 2:51 pm
x 134
Contact:

C#/ .NET Component in master

Post by paroj » Thu Dec 13, 2018 9:48 pm

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.
1 x

User avatar
Zonder
Ogre Magi
Posts: 1129
Joined: Mon Aug 04, 2008 7:51 pm
Location: Manchester - England
x 21

Re: C#/ .NET Component in master

Post by Zonder » Fri Dec 14, 2018 10:48 am

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?
0 x
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: 817
Joined: Sun Mar 30, 2014 2:51 pm
x 134
Contact:

Re: C#/ .NET Component in master

Post by paroj » Fri Dec 14, 2018 11:49 am

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.
0 x

User avatar
Zonder
Ogre Magi
Posts: 1129
Joined: Mon Aug 04, 2008 7:51 pm
Location: Manchester - England
x 21

Re: C#/ .NET Component in master

Post by Zonder » Fri Dec 14, 2018 1:10 pm

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
0 x
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: 817
Joined: Sun Mar 30, 2014 2:51 pm
x 134
Contact:

Re: C#/ .NET Component in master

Post by paroj » Fri Dec 14, 2018 2:10 pm

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.
0 x

Post Reply