SFML community forums

Bindings - other languages => Python => Topic started by: Tank on February 11, 2010, 03:07:58 pm

Title: Tuple -> sf::Vector
Post by: Tank on February 11, 2010, 03:07:58 pm
Hey,

currently PySFML uses tuples for representing sf::Vector* objects. I discussed that with someone (pekuja) some weeks before (sorry for that, got less time ;)) and we came up with the idea to implement sf::Vector* classes in PySFML, too. There're mainly two reasons:


Open for comments. :)
Title: Tuple -> sf::Vector
Post by: Tank on February 13, 2010, 06:43:42 pm
Okay, so if nobody has something to complain about, I'll implement it. ;)
Title: Tuple -> sf::Vector
Post by: remi.k2620 on February 14, 2010, 01:04:33 pm
That's a great idea.
I wanted to do it but never had enough motivation. I think the constructor should be able to take any object that has x and y attributes and tuples of length 2.
Title: Tuple -> sf::Vector
Post by: Tank on February 14, 2010, 01:49:10 pm
For virtualising the template class? I agree. :) I'll create a draft and see if it works out.