Function Window.drawableGLWidth

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

uint drawableGLWidth() @property @trusted const;

Returns

height of the window in OpenGL in pixels