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

Method Clear

src/SFGUI/Primitive.cpp:138–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void Primitive::Clear() {
139 m_vertices.clear();
140 m_textures.clear();
141 m_indices.clear();
142
143 m_position = sf::Vector2f( 0.f, 0.f );
144 m_layer = 0;
145 m_level = 0;
146 m_synced = false;
147 m_visible = true;
148
149 m_viewport = Renderer::Get().GetDefaultViewport();
150 m_custom_draw_callback.reset();
151}
152
153}

Callers

nothing calls this directly

Calls 2

GetDefaultViewportMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected