Function Window.drawableGLSize

Wraps SDL_GL_GetDrawableSize (from SDL 2.0.1) which gets the drawable size of the window in OpenGL in pixels

uint[2] drawableGLSize() @property @trusted const;

Returns

size of the window in OpenGL in pixels