MCPcopy Create free account
hub / github.com/TankOs/SFGUI / SetPosition

Method SetPosition

src/SFGUI/RenderQueue.cpp:52–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void 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
66const std::vector<Primitive::Ptr>& RenderQueue::GetPrimitives() const {
67 return m_primitives;

Callers 1

AddMethod · 0.45

Calls 1

InvalidateMethod · 0.45

Tested by

no test coverage detected