1
Graphics / Re: Texture equality operator
« on: February 11, 2014, 03:52:26 pm »
Thanks for the advice everyone.
I've decided to re-implement my sprite batcher to use shared_ptr address comparisons to check the equality of textures. It works well with my current implementation.
I feel that this is a better solution than modifying the SFML source, which would cause issues if the internal structure of the Texture class was changed.
I've decided to re-implement my sprite batcher to use shared_ptr address comparisons to check the equality of textures. It works well with my current implementation.
I feel that this is a better solution than modifying the SFML source, which would cause issues if the internal structure of the Texture class was changed.