getOutputSize method
Get the output size in pixels of a rendering context.
This returns the true output size in pixels, ignoring any render targets or logical size and presentation.
\param renderer the rendering context. \param w a pointer filled in with the width in pixels. \param h a pointer filled in with the height in pixels. \returns true on success or false on failure; call SDL_GetError() for more information.
\threadsafety This function should only be called on the main thread.
\since This function is available since SDL 3.1.3.
\sa SDL_GetCurrentRenderOutputSize
extern SDL_DECLSPEC bool SDLCALL SDL_GetRenderOutputSize(SDL_Renderer *renderer, int *w, int *h)
Implementation
math.Point<double> getOutputSize() {
var wPointer = calloc<Int32>();
var hPointer = calloc<Int32>();
sdlGetRenderOutputSize(this, wPointer, hPointer);
var result = math.Point<double>(
wPointer.value.toDouble(), hPointer.value.toDouble());
calloc.free(wPointer);
calloc.free(hPointer);
return result;
}