2
« on: December 03, 2015, 09:41:47 pm »
Hey guys, I hope you are doing well.
This is a conceptual question not a "why doesn't this work" question.
I was reading the documentation for SFML 2.0 and I could not help but take note of the function signature for setTexture that is different than other functions in the graphics library.
Namely the fact that this function takes a const pointer to a sf::texture object, while almost all other functions in the library use const references instead of const pointers (setOutlineColor, setPosition, setFillColor to name a few)
needless to say, a pass by const reference and const pointer are very similar semantically but I am suspicious that there must be a very good reason for this choice to grant such inconsistency in style.
Have a good day