for example :
std::vector< sf::RectangleShape > rect;
//stuffs
int i = 0;
for ( auto& a : rect )
{
++i;
rect.setRotation( 90 + i );
}
each of the rect will have different rotations.
I know how to apply transform to vertex array, but if I want the vertex array to have different roations, how do I do that ?
sf::VertexArray vert{ sf::Quads, 8 };
//stufs
sf::Transform t;
t.setRotation( 90 );
win.draw( vert, t ) // unable to set rotation for each 4 vertices