Function sdl2_sys::SDL_Metal_GetDrawableSize
source · pub unsafe extern "C" fn SDL_Metal_GetDrawableSize(
window: *mut SDL_Window,
w: *mut c_int,
h: *mut c_int,
)
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