MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / isMultiViewportAvailable

Method isMultiViewportAvailable

source/MRViewer/MRViewer.cpp:1852–1865  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1850}
1851
1852bool Viewer::isMultiViewportAvailable()
1853{
1854#ifdef __EMSCRIPTEN__
1855 return false;
1856#elif GLFW_VERSION_MAJOR > 3 || ( GLFW_VERSION_MAJOR == 3 && GLFW_VERSION_MINOR >= 4 )
1857 // ImGui multi-viewport has unresolved issues with tooltips on X11 (incorrect window class?)
1858 // See also:
1859 // - https://github.com/ocornut/imgui/issues/7950
1860 // - https://github.com/ocornut/imgui/issues/8252
1861 return !hasScaledFramebuffer_ && glfwGetPlatform() != GLFW_PLATFORM_X11;
1862#else
1863 return !hasScaledFramebuffer_;
1864#endif
1865}
1866
1867void Viewer::drawFull( bool dirtyScene )
1868{

Callers 2

initMethod · 0.80
drawApplicationTab_Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected