Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

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.


Messages - kreadeth

Pages: [1]
1
Graphics / Re: Setting Circle Center
« on: October 25, 2015, 05:49:22 pm »
I got it right. Thank you both.  :)

2
Graphics / Re: Setting Circle Center
« on: October 25, 2015, 05:20:41 pm »
I did before posting here. See:

    sf::RenderWindow window (sf::VideoMode(800,600), "Circle");
    sf::CircleShape circle;
    circle.setPosition(400, 300);
    circle.setOrigin (400, 300);
    circle.setRadius(50);
 

or:

    circle.setOrigin (sf::Vector2f(400, 300));
 
or
    circle.setOrigin ({400, 300});
 

Anyway the result I get is a circle in the uppermost left corner of the window.

3
Graphics / Setting Circle Center [Solved]
« on: October 25, 2015, 04:22:15 pm »
When I write something like this:

sf::CircleShape circle;
circle.setRadius(5);
circle.setPosition(0, 0);

(0, 0) point would not be the circle center. What should I do in order to do this?

Pages: [1]
anything