Re: [GD-General] scripting via COM?
Brought to you by:
vexxed72
From: Kent Q. <ken...@co...> - 2006-01-27 01:16:33
|
If you need cross-language scripting capability, definitely consider using SWIG. (http://www.swig.org/) The pain you'll go through getting SWIG to read your header files is a tiny fraction of the agony you'll feel implementing scriptable COM objects and teaching your customers to use them in various ways. SWIG can generate bindings for everything from Python and Perl and Ruby to Java to C# to Lua. I haven't used it myself, but it comes pretty highly recommended if this is the kind of problem you have. Kent Andras Balogh wrote: > Well, yeah, this is not really a game engine, although it's similar. > The big difference is that with a game engine, one could make a > decision that it will be scripted with Lua, and be done with it. In > this case however, customers will probably want to use our rendering > services from all kinds of different languages, so it would be > preferable not to have such binding limitations. > > Do you have any other ideas, how I could make my objects available in > a way so it's usable by many languages, yet is simple to implement? > > > Andras |