MCPcopy Create free account
hub / github.com/arrayfire/forge / getCurrentDisplayHandle

Function getCurrentDisplayHandle

src/backend/opengl/gl_native_handles.cpp:41–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41DisplayHandle getCurrentDisplayHandle()
42{
43 auto id = DisplayHandle{0};
44
45#if defined(OS_WIN)
46 const auto display = wglGetCurrentDC();
47#elif defined(OS_LNX)
48 const auto display = glXGetCurrentDisplay();
49#else
50 const DisplayHandle display = 0;
51#endif
52 id = reinterpret_cast<DisplayHandle>(display);
53
54 return id;
55}
56
57}
58}

Callers 2

getDisplayHandleMethod · 0.85
getDisplayHandleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected