SWIG

SwigSword Project Recreated

By request I have made available the latest snapshots of the SwigSword project (SWORD library with enhanced SWIG bindings) and the projects that made use of it: SwordSharp and SharpCSword.

All 3 of these files are now hosted on googlecode. They were initially hosted on source.emptycrate.com before I had to take that site down.

  • SwigSword: The library source itself with required SWIG binary for building the libraries (both C# and C++ libraries are needed for working with Visual C#).
  • SharpCSword: complete example for how to use the sword library with C#, including binaries of the request libraries and example modules installed
  • SwordSharp: Another GUI front end that made use of the SwigSword library. Both source and binary releases are available

Swig Starter Kit 0.0.2

Release 0.0.2 of Swig Starter Kit was just released.

This release sees the addition of template usage examples, including custom function templates and STL usage.

Using a SWIG template declaration we are able to instantiate a specific template and use it from our script code.

//SWIG Code
%include <std_string.i>
%include <std_vector.i>
%template(String_Vector) std::vector<std::string>;

We can now use the std container classes with our Lua code:

 

Syndicate content