211
Graphics / SetOrigin changes draw position
« on: July 11, 2011, 05:50:42 pm »
I'm pretty sure that's the intended behaviour. The centre of the sprite is used for both translations and rotations.
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.
#include <boost/lexical_cast.hpp>
#include <string>
#include <iostream>
int main()
{
int ntest = 10;
std::string test = boost::lexical_cast<std::string>(test);
std::cout << test << std::endl;
return 0;
}
There's only thing that I still need to solve: from a sprite you can get its texture, but from the texture you won't be able to get the pixels anymore (there will only be a slow "download" from the graphics card, into a sf::Image), so I don't know how people will do for pixel perfect collision detection. They'll probably be forced to store the collision data themselves, but this is really annoying.