| 50 | } |
| 51 | |
| 52 | void RenderQueue::SetPosition( const sf::Vector2f& position ) { |
| 53 | if( position == m_position ) { |
| 54 | return; |
| 55 | } |
| 56 | |
| 57 | m_position = position; |
| 58 | |
| 59 | for( const auto& primitive : m_primitives ) { |
| 60 | primitive->SetPosition( position ); |
| 61 | } |
| 62 | |
| 63 | Renderer::Get().Invalidate( sfg::Renderer::INVALIDATE_VERTEX ); |
| 64 | } |
| 65 | |
| 66 | const std::vector<Primitive::Ptr>& RenderQueue::GetPrimitives() const { |
| 67 | return m_primitives; |