Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - LifelongStudent

Pages: [1]
1
That is a very logical answer, Thanks

2
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


Pages: [1]
anything