1
Graphics / GetPosition always zero
« on: March 04, 2010, 07:54:17 pm »
Thank you. I got it working by using your advice.
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.
for (int i = 0; i < 16; i++)
{
T_BallItem item;
item.radius = sf::Randomizer::Random(15.0f, 80.0f);
item.ball = sf::Shape::Circle(sf::Randomizer::Random(0.0f, 800.0f),
sf::Randomizer::Random(0.0f, 380.0f),
item.radius,
sf::Color(0, 128, 128));
item.ball.SetBlendMode(sf::Blend::Multiply);
items.push_back(item);
std::cout << item.ball.GetPosition().x << "x" << item.ball.GetPosition().y << std::endl;
}