sdlVulkanGetDrawableSize function
Get the size of the window's underlying drawable dimensions in pixels.
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.
\param window an SDL_Window for which the size is to be queried \param w Pointer to the variable to write the width to or NULL \param h Pointer to the variable to write the height to or NULL
\since This function is available since SDL 2.0.6.
\sa SDL_GetWindowSize \sa SDL_CreateWindow \sa SDL_Vulkan_CreateSurface
extern DECLSPEC void SDLCALL SDL_Vulkan_GetDrawableSize(SDL_Window * window, int *w, int *h)
Implementation
void sdlVulkanGetDrawableSize(
Pointer<SdlWindow> window, Pointer<Int32> w, Pointer<Int32> h) {
final sdlVulkanGetDrawableSizeLookupFunction = 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_Vulkan_GetDrawableSize');
return sdlVulkanGetDrawableSizeLookupFunction(window, w, h);
}