Modifying SWIG interface to generate proper classes in C#

Problems building or running the engine, queries about how to use features etc.
Post Reply
r0ut
Halfling
Posts: 44
Joined: Mon Feb 22, 2021 6:25 pm
x 2

Modifying SWIG interface to generate proper classes in C#

Post by r0ut »

Ogre Version: 1.12

I'm currently trying to figure out how SWIG works and actually I've got to know that it can't wrap classes or functions with custom types properly. How can I modify the SWIG interface to generate a properly Terrain class per example?
paroj
OGRE Team Member
OGRE Team Member
Posts: 1994
Joined: Sun Mar 30, 2014 2:51 pm
x 1074
Contact:

Re: Modifying SWIG interface to generate proper classes in C#

Post by paroj »

you have wrap the custom types first.

Also feel free to ping this guy about his progress:
https://github.com/OGRECave/ogre/issues/1662

edit:
also take a look at some of the smaller components, how things are done:
https://github.com/OGRECave/ogre/blob/m ... RTShader.i
Post Reply