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

Method initialize

src/SFML/Window/Window.cpp:212–228  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

210
211////////////////////////////////////////////////////////////
212void Window::initialize()
213{
214 // Setup default behaviors (to get a consistent behavior across different implementations)
215 setVerticalSyncEnabled(false);
216 setFramerateLimit(0);
217
218 // Reset frame time
219 m_clock.restart();
220
221 // Activate the window
222 if (!setActive())
223 {
224 err() << "Failed to set window as active during initialization" << std::endl;
225 }
226
227 WindowBase::initialize();
228}
229
230} // namespace sf

Callers 1

Calls 2

initializeFunction · 0.85
restartMethod · 0.80

Tested by

no test coverage detected