MCPcopy Create free account
hub / github.com/SFML/SFML / display

Method display

src/SFML/Window/Window.cpp:196–208  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

194
195////////////////////////////////////////////////////////////
196void Window::display()
197{
198 // Display the backbuffer on screen
199 if (setActive())
200 m_context->display();
201
202 // Limit the framerate if needed
203 if (m_frameTimeLimit != Time::Zero)
204 {
205 sleep(m_frameTimeLimit - m_clock.getElapsedTime());
206 m_clock.restart();
207 }
208}
209
210
211////////////////////////////////////////////////////////////

Callers 15

Render.test.cppFile · 0.45
mainFunction · 0.45
mainFunction · 0.45
updateMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
runMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 3

sleepFunction · 0.85
getElapsedTimeMethod · 0.80
restartMethod · 0.80

Tested by

no test coverage detected