Get the current output size in pixels of a rendering context.
Defined in <SDL3/SDL_render.h>
bool SDL_GetCurrentRenderOutputSize(SDL_Renderer *renderer, int *w, int *h);
SDL_Renderer * | renderer | the rendering context. |
int * | w | a pointer filled in with the current width. |
int * | h | a pointer filled in with the current height. |
(bool) Returns true on success or false on failure; call SDL_GetError() for more information.
If a rendering target is active, this will return the size of the rendering target in pixels, otherwise if a logical size is set, it will return the logical size, otherwise it will return the value of SDL_GetRenderOutputSize().
This function should only be called on the main thread.
This function is available since SDL 3.1.3.