Nice,i'm not using swig,i've generated PINVOKE file by myself,for example i have even done the inheritance,for example you can create your own MovableObject.Wolfmanfx wrote:I also use my own wrapper generated via swig which generates a PINVOKE cpp file, and it does not feel laggy or slow. ( i mean the runtime performance and not the generation time )
Code: Select all
public class Particle : CustomMovableObject,IDisposable
{
...
#region OVERRIDE FROM PARENT
protected override void UpdateRenderQueue(RenderQueue queue)
{
}
public override BoundingBox BoundingBox
{
get
{
throw new NotImplementedException("Particle can't be used as MovableObject");
}
}
public override float BoundingRadius
{
get
{
return 0.0f;
}
}
public override string MovableType
{
get
{
return "Particle";
}
}
#endregion
}