Hi all,
I'm a newcomer to SFML and so I don't want to rub anybody the wrong way but I feel I need to mention something..
Objects (classes) in Object Oriented Programming have both Methods and Properties.
Methods typically do some calculation and return a value.
Properties typically HOLD a value and return it upon request.
I have noticed that some methods in SFML seem out of place as if they didn't always use OOP conventions.
Take, for instance:
unsigned int Input::GetMouseX() const
{
return myMouseX;
}
This looks like it was written by someone who's been accustomed to Procedural programming (notice the Get/Set prefixes in methods prevalent throughout the entire library). If it were me writing this class, the MouseX would have been a protected int MouseX, etc. because it does absolutely nothing but return a value with no calculations.
Please note, I am totally not trying to knock any of the hard work that has been done.. Maybe just perhaps trying to figure out why it's been done this way. Maybe nudging for a change to a more pure OOP style. Maybe someone just needs to put me in my place, I'm not sure.
Thanks!