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

Method InvalidateImpl

src/SFGUI/Canvas.cpp:263–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263std::unique_ptr<RenderQueue> Canvas::InvalidateImpl() const {
264 std::unique_ptr<RenderQueue> queue( new RenderQueue );
265
266 queue->Add(
267 Renderer::Get().CreateGLCanvas(
268 m_custom_draw_callback
269 )
270 );
271
272 // Override whatever viewport our parents want us to use.
273 // Yes... we are very naughty aren't we...
274 queue->SetViewport( m_custom_viewport );
275
276 return queue;
277}
278
279sf::Vector2f Canvas::CalculateRequisition() {
280 return sf::Vector2f( 0.f, 0.f );

Callers

nothing calls this directly

Calls 3

CreateGLCanvasMethod · 0.80
AddMethod · 0.45
SetViewportMethod · 0.45

Tested by

no test coverage detected