From: Francis Cianfrocca Date: 2006-05-10T12:25:52+09:00 Subject: Re: Intro to embedded Ruby ------=_Part_73751_25761954.1147231549691 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I don't know anything about game programming so this may not be useful to you. I've tried embedding both ways (Ruby in C++, C++ in Ruby), and I think it's much better to call native code from Ruby. You could look at the dlope= n library, which is really rather good but lightly documented and somewhat frustrating. But you might have better luck writing "extensions" in C++. Read the file README.EXT in the Ruby distro, and then read the source code for some of the standard extensions in the distro. With an extension you ca= n basically write Ruby in C++, create your own Ruby classes, etc. On 5/9/06, akrasia wrote: > > Hello all! > > I'm relatively new to the world of Ruby, but I feel I'm catching on > quickly to the advantages and conveniences that the language offers. > Mostly, I've been using it to develop games. > > A recent interest of mine involves using Ruby and C/C++ together to > handle a more complex game. My goal is to have C/C++ handle all of the > graphics via SDL or something similar and have Ruby handle all of the > game logic (input, script handling, and such). > > Essentially, I'm looking for a basic, from-the-ground-up introduction to > embedding Ruby in C/C++. I've had much experience with C/C++ and > programming overall and I am using Linux for development. > > Thanks! > > -- > Posted via http://www.ruby-forum.com/. > > ------=_Part_73751_25761954.1147231549691--