[Opensim-dev] Plugins

Adams, Robert robert.adams at intel.com
Thu Aug 11 16:51:19 UTC 2011


A longer answer is "yes, but..."

C# is a managed runtime environment so there are some hoops to jump through to add and interface to native/unmanaged C and C++ code. You create a C# OpenSimulator module which uses P/Invoke or equivalent to marshal and connect to your unmanaged C/C++ code. While doable (and I've done it a few times and it's not all that hard), the major problem is that the OpenSimulator build environment builds C# so you have a separate build environment for your C/C++ code and you end up distributing binary .dll's and .so's.

Thus the short answer. Unless you have some strange interfacing requirements or some extreme performance requirements, C# is very performant and it is OpenSimulator's native environment.

-- ra

-----Original Message-----
From: opensim-dev-bounces at lists.berlios.de [mailto:opensim-dev-bounces at lists.berlios.de] On Behalf Of Justin Clark-Casey
Sent: Wednesday, August 10, 2011 7:34 PM
To: opensim-dev at lists.berlios.de
Subject: Re: [Opensim-dev] Plugins

On 10/08/11 23:34, Tyler McMaster wrote:
> Is it possible to make a plugin for OpenSim in C or is it only C#?

Short answer, stick to C#.  Doing C would be complex and very suboptimal.

-- 
Justin Clark-Casey (justincc)
http://justincc.org/blog
http://twitter.com/justincc
_______________________________________________
Opensim-dev mailing list
Opensim-dev at lists.berlios.de
https://lists.berlios.de/mailman/listinfo/opensim-dev



More information about the Opensim-dev mailing list