1
Graphics / Re: a bug of sfml graphical module
« on: March 12, 2016, 08:02:33 am »
I write a function which is used to show a picture on screen. The function is like this:
void drawTexture(float centerX,float centerY);
When I need to draw a title texture, which means the texture should be centered, and I donnot konw the texture size, using this function will be very convenient. However, if the centerX parameter is an integer and the texture size is an odd number, the upper left corner coordinate will be a decimal. So you can see it is really a common situation.
void drawTexture(float centerX,float centerY);
When I need to draw a title texture, which means the texture should be centered, and I donnot konw the texture size, using this function will be very convenient. However, if the centerX parameter is an integer and the texture size is an odd number, the upper left corner coordinate will be a decimal. So you can see it is really a common situation.