Function SDL_Metal_GetDrawableSize
pub unsafe extern "C" fn SDL_Metal_GetDrawableSize(
window: *mut SDL_Window,
w: *mut i32,
h: *mut i32,
)
Available on crate feature
dep_sdl2
only.Expand description
Get the size of a window’s underlying drawable in pixels (for use with setting viewport, scissor & etc).
\param window SDL_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
\since This function is available since SDL 2.0.14.
\sa SDL_GetWindowSize \sa SDL_CreateWindow