I am using sf::Image as a texture class. However, my implementation of resource manager makes calls to Bind() very unefficient.
I wanted to remember the texture number in some of my drawing calls, but got an unpassable problem - private.
I am not using sf::Image directly; I created my own wrapper class.
However, I wasn't able to access this field because I can't get access to it.
I used following code as a workaround, I'd however be very happy to see some of the private variables changed to protected or be given accessors in new API.
#define private protected
#include <SFML/Graphics/Image.hpp>
#define private private
//EDIT : this code, surprisingly, didn't work. I just edited the Image.hpp file and changed this.