SFML community forums
General => Feature requests => Topic started by: Kingdom of Fish on January 26, 2008, 11:18:05 pm
-
How come SFML doesn't seem to use simple helper classes such as vectors and such (ok, i can't come up with any other but am sure there is)?
-
You mean, mathematical classes ?
-
Yeah, but I still haven't figured out more then the vector class... But maybe i'm just spoiled after having worked with ogre3d too much.
-
Actually, Vector2 and Vector3 classes would be quite useful (for sprite position and scale, sound position, listener, ...). I just don't know where to put them, as I don't have a maths module, and as it would have to be accessible by both the graphics and sound modules.
Apart from that, I can't see any other helper class that would be useful at this point.
-
AABB2 could be usefull for sprites, but i think its all not a good idea, as this would force me and others who have their own Math libs, to add implicit cast operators between their and your classes, what makes code more complicated to understand.
And its not that much overhead to write "foo.move(x, y)" instead of foo.move(v)".
Btw you could easily add this by deriving from sfml and just adding a function which handles your vector class.
Dont bloat things. We dont want to see an FSML;)
-
This is something best handled by an external library in my opinion, there are already plenty of other options out there for this functionality.
-
This is something best handled by an external library in my opinion, there are already plenty of other options out there for this functionality.
Well, that adds to dependencies. And if the only required is Vector[1,2,3] AABB and such you get alot of stuff where little is required.
-
Well, that adds to dependencies. And if the only required is Vector[1,2,3] AABB and such you get alot of stuff where little is required.
If you really only require these, then you could write them in less then two hours. Btw Vector1 is a really really bad idea as it is exactly double/float.
-
Well, that adds to dependencies. And if the only required is Vector[1,2,3] AABB and such you get alot of stuff where little is required.
If you really only require these, then you could write them in less then two hours.
Yes i know but what i wish is the whole integration with SFML like Sprite::SetPosition(Vector2)
Btw Vector1 is a really really bad idea as it is exactly double/float.
Yeah i know, was just being silly...