Ruby Windows

Sage
Posts: 1,066
Joined: 2004.07
Post: #1
How can I make windows and draw things to the screen using Ruby? I have the terminal aspect down as well as variables and things of that nature, but I'd like to do more than just print text. Thanks for any links or help.
Quote this message in a reply
Sage
Posts: 1,482
Joined: 2002.09
Post: #2
Well, thats not really a strong point of Ruby.

Current options:
1. Ruby Cocoa. A mostly complete binding of Cocoa for Ruby. Cool, but the Objective-C names are really annoying to emulate in Ruby. I'd avoid using this for small things.
2. Ruby/TK. Comes with the standard install of Ruby, but you need to have X11 installed to use it. You could also recompile Ruby to use the Aqua/TK, but that's kind of a hassle.
3. OSC's RubyGameCommon or RubyGameShell. The former built around GLUT, and the latter built around his GameShell library. Both have access to OpenGL, Mathlib3D and OpenAL, have PNG loading routines, and font rendering support and probably something else I'm missing.
4. X-Fish source. Borrows some code from OSC's stuff, but uses SDL for windowing and events.
Quote this message in a reply
Member
Posts: 320
Joined: 2003.06
Post: #3
I'm sure Keith can help you out here. While you wait for hime to wake up you can have a look at his source repository: http://www.onesadcookie.com/svn/repos

I had a great old play for a few days with ruby-gnome on gentoo linux. RubyCocoa may well let you do similar things, but I haven't tried it. Probably worth a look though: http://rubycocoa.sourceforge.net/doc/

edit: doh got in a bit late there, oh well

Chopper, iSight Screensavers, DuckDuckDuck: http://majicjungle.com
Quote this message in a reply
Sage
Posts: 1,066
Joined: 2004.07
Post: #4
I think I'll look through OSC's stuff for a bit. Try and make sense of it.

Skorche, the X-fish source link you capitalized the X but when I looked into it, you spelled the file xFish.zip on your server. Might want to change that for others. I'll look through your code as well.
Quote this message in a reply
Sage
Posts: 1,403
Joined: 2005.07
Post: #5
Oops! I mentioned this in a seperate thread, sorry.
If you have any problems at all setting it up:
http://www.idevgames.com/forum/showthread.php?t=9655

Sir, e^iπ + 1 = 0, hence God exists; reply!
Quote this message in a reply
Sage
Posts: 1,482
Joined: 2002.09
Post: #6
Shock
So not only did I mention OSC's stuff without providing a link, I forgot to check my own.

Sorry 'bout that. Blush
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Ruby on Rails setting Time to NULL BeyondCloister 3 3,913 Nov 21, 2007 09:56 AM
Last Post: AndyKorth
  Ruby, MacPorts, Firewalls BeyondCloister 3 4,105 Nov 6, 2007 04:57 PM
Last Post: OneSadCookie
  Ruby: Resources for Learning iefan 10 6,951 Jul 4, 2007 08:54 AM
Last Post: ALX99066
  Ruby Gems and OpenGL Jaden 2 3,090 Apr 2, 2007 01:15 AM
Last Post: Jaden
  Embedding Ruby DesertPenguin 3 3,453 Jan 5, 2007 09:11 PM
Last Post: DesertPenguin