106
Graphics / Re: texture.update(pixels), using std::vector of Uint8 instead of array
« on: July 17, 2014, 04:52:34 am »
Texture.update has a (sf::Image& image) overload but at this point it doesn't matter as Laurent's solution is better resource and performance wise. Perhaps using http://en.cppreference.com/w/cpp/container/array would improve things even more but at this point the difference is minimal and I can't test it now so stick with Laurent's solution.