sdlMetalGetDrawableSize function
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
extern DECLSPEC void SDLCALL SDL_Metal_GetDrawableSize(SDL_Window* window, int *w, int *h)
Implementation
void sdlMetalGetDrawableSize(
Pointer<SdlWindow> window, Pointer<Int32> w, Pointer<Int32> h) {
final sdlMetalGetDrawableSizeLookupFunction = libSdl2.lookupFunction<
Void Function(
Pointer<SdlWindow> window, Pointer<Int32> w, Pointer<Int32> h),
void Function(Pointer<SdlWindow> window, Pointer<Int32> w,
Pointer<Int32> h)>('SDL_Metal_GetDrawableSize');
return sdlMetalGetDrawableSizeLookupFunction(window, w, h);
}