Ruby Native

by Glenn Fiedler on July 10, 2005

For those interested in game development with Ruby, i am releasing the source code for “Ruby Native”, a set of helper classes, templates and macros for embedding and extending Ruby in C++ code.

With Ruby Native you can easily embed Ruby into your C++ application then wrap up your existing C++ objects for use inside Ruby script.

To show just how easy it is to use, here is a small demonstration of a Vector class with all its methods and overloaded operators wrapped up and exported for use in a Ruby script. The demonstration executable embeds a cut-down version of the Ruby interpreter so you dont even have to download Ruby to try it out!

http://www.gaffer.org/downloads/RubyNative.zip

Leave a Comment

Previous post:

Next post: