1
Graphics / Re: expected primary expression when using a pointer
« on: July 01, 2019, 01:24:21 pm »
that fixed it, thanks
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.
*bmp_ptr = sf::Sprite.setRotation(); //error here
bmp_gun.setPosition(sf::Vector2f(110.f,50.f));
class_window.draw(bmp);
class_window.draw(bmp_gun);
vehicles::vehicles(sf::RenderWindow& window)
:class_window(window)
{
sf::Sprite bmp;
sf::Sprite bmp_gun;
sf::Texture bmp_texture;
sf::Texture bmp_gun_texture;
bmp_ptr = &bmp;
bmp_texture.loadFromFile("bmp.png");
bmp_gun_texture.loadFromFile("bmp turret.png");
bmp_gun.setTexture(bmp_gun_texture);
bmp.setTexture(bmp_texture);
}