[][src]Function sdl2_sys::SDL_GL_GetDrawableSize

pub unsafe extern "C" fn SDL_GL_GetDrawableSize(
    window: *mut SDL_Window,
    w: *mut c_int,
    h: *mut c_int
)

\brief Get the size of a window's underlying drawable in pixels (for use with glViewport).

\param window Window from which the drawable size should be queried \param w Pointer to variable for storing the width in pixels, may be NULL \param h Pointer to variable for storing the height in pixels, may be NULL

This may differ from SDL_GetWindowSize() if we're rendering to a high-DPI drawable, i.e. the window was created with SDL_WINDOW_ALLOW_HIGHDPI on a platform with high-DPI support (Apple calls this "Retina"), and not disabled by the SDL_HINT_VIDEO_HIGHDPI_DISABLED hint.

\sa SDL_GetWindowSize() \sa SDL_CreateWindow()