MCPcopy Create free account
hub / github.com/ddnet/ddnet / GetViewportSize

Method GetViewportSize

src/engine/client/backend_sdl.cpp:1763–1769  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1761}
1762
1763void CGraphicsBackend_SDL_GL::GetViewportSize(int &w, int &h)
1764{
1765 if(m_BackendType != EBackendType::BACKEND_TYPE_VULKAN)
1766 SDL_GL_GetDrawableSize(m_pWindow, &w, &h);
1767 else
1768 SDL_Vulkan_GetDrawableSize(m_pWindow, &w, &h);
1769}
1770
1771void CGraphicsBackend_SDL_GL::NotifyWindow()
1772{

Callers 1

GotResizedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected