Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: new ruby bindings (a work in progress)  (Read 27358 times)

0 Members and 3 Guests are viewing this topic.

TricksterGuy

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
new ruby bindings (a work in progress)
« on: January 09, 2009, 07:15:50 am »
As I mentioned in this topic http://www.sfml-dev.org/forum/viewtopic.php?t=811 I have been working on new bindings for ruby

This is the good news, the bad news (which may not matter as there is not much activity for ruby) is that my version will not be compatible with the version thats up now (I used different method names than he has).

I have already taken care of the release of SFML 1.4 which was released while I was working on this.

As for my progress I have all of the graphics and window classes wrapped (not all methods have been wrapped, but many of them are at this point). I will also provide documentation for all classes/constants/methods since they different from SFML slightly (they use Ruby conventions such as getter and setter= and query?)

Also I am rather picky about how I name methods and what arguments they accept I could use help in this department (because in the end you the reader may be using this) I have sample documentation hosted here - http://www.wg2140.com/users/trickster/doc/index.html . Note that this is outdated a bit and I haven't updated it (that is the new sfml 1.4 stuff is not on here).

Also there is testing that still needs to be done. I'm not saying I am an expert at C (but I am pretty darn good at it ;))and that my code is perfect, but I have eliminated all of the bugs I have seen so far and I have seen no bugs when I wrote test programs. I will post the source code when I am done wrapping the Audio stuff.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
new ruby bindings (a work in progress)
« Reply #1 on: January 09, 2009, 07:57:33 am »
That's amazing, I can't wait to see this new version.

Thank you very much for your help :)
Laurent Gomila - SFML developer

TricksterGuy

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
new ruby bindings (a work in progress)
« Reply #2 on: January 11, 2009, 05:39:17 am »
Its the least I could do :)

I have updated the documentation here is the link again http://www.wg2140.com/users/trickster/doc/index.html . Two of the new shape methods don't appear on there (point_color, and point_outline) because I couldn't think of a way to name the method w/o calling it get/set_something, but they have been wrapped though.

Now to work on the audio stuff and finish up the graphics stuff and I will be done with the code except for debugging.

TricksterGuy

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
new ruby bindings (a work in progress)
« Reply #3 on: January 15, 2009, 06:13:03 pm »
Update on my progress

as of this morning I played my first sound from a ruby program.

All I have left are the following classes

Music (Done!)
SoundBufferRecorder
SoundRecorder
PostFX (I won't be able to test this class on my computer )
Drawable

and a few more minor additions to some classes


I have also updated the documentation and as usual it can be found at this link - http://www.wg2140.com/users/trickster/doc/index.html

  • Guest
new ruby bindings (a work in progress)
« Reply #4 on: September 28, 2010, 10:47:41 am »
I have liked your opinion on this kind post. I am going to subscribe your post and will come here again to know more. Thanks,

 

anything