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

Function getInitializedDisplay

src/SFML/Window/EglContext.cpp:61–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59namespace EglContextImpl
60{
61EGLDisplay getInitializedDisplay()
62{
63 static EGLDisplay display = EGL_NO_DISPLAY;
64
65 if (display == EGL_NO_DISPLAY)
66 {
67 display = eglCheck(eglGetDisplay(EGL_DEFAULT_DISPLAY));
68 eglCheck(eglInitialize(display, nullptr, nullptr));
69 }
70
71 return display;
72}
73
74
75////////////////////////////////////////////////////////////

Callers 3

ensureInitFunction · 0.70
EglContextMethod · 0.70
selectBestVisualMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected