I don't know how Laurent feels about it but I wouldn't mind if you had SVN access so you could commit it yourself. But if he don't want too many people to have access then I can commit it for you.
I give write access to the SVN to developers who want to maintain a binding in the long term.
So it's up to TricksterGuy to decide:
- if he wants to collaborate in the long term to rbSFML I'll give him SVN access
- if he only wants to submit a few patches then it's better if you review and push them to the repository yourself
Aight, well there's a lot left to do which Trickster could help out with if he's up for it. I could create a "ToDo" for rbSFML like you have Laurent to keep track of what needs to be done. There's a lot left to do actually.
I know some "upgrades" we can do to make it more suited for ruby. For instance add a
SFML::Input#mouse_position which should return a vector based on the mouse position. Also it would be nice if it was possible to connect vectors so it would be possible to write:
sprite = # From somewhere
sprite.position.x = 25 # This would somehow give the sprite position 25
Currently it works like SFML and returns a copy (Well sfml returns a constant reference but you should work with it like a copy). Possible way of doing this would be to create a private
"on_change" method to the vector which will look something like this:
def on_change # This is in ruby code but will be implemented in C instead.
unless @__owner_ref.nil?
@__owner_ref.send( @__owner_set_method, self )
end
end
This should get the desired effect and we only need to call it inside
SFML::Vector2#x= and
SFML::Vector2#y=. Will probably have to add it to SFML::Rect, SFML::Color and to any other class where this would be logically. Also have to add the actual instance variables on every place where we return a copy where we want to be able to change the actual value on the "owner" object. The solution is simple but it's a lot of work.