Man page - sdl_getcurrentrenderoutputsize(3)

Packages contas this manual

Manual

SDL_GetCurrentRenderOutputSize(3) SDL3 FUNCTIONS SDL_GetCurrentRenderOutputSize(3)

SDL_GetCurrentRenderOutputSize - Get the current output size in pixels of a rendering context.

Defined in SDL3/SDL_render.h

#include "SDL3/SDL.h"
bool SDL_GetCurrentRenderOutputSize(SDL_Renderer *renderer, int *w, int *h);

If a rendering target is active, this will return the size of the rendering target in pixels, otherwise return the value of

SDL_GetRenderOutputSize ().

Rendering target or not, the output will be adjusted by the current logical presentation state, dictated by

SDL_SetRenderLogicalPresentation ().

the rendering context.
a pointer filled in with the current width.
a pointer filled in with the current height.

Returns true on success or false on failure; call

SDL_GetError () for more information.

This function should only be called on the main thread.

This function is available since SDL 3.2.0.

(3), SDL_GetRenderOutputSize(3)

SDL 3.2.10 Simple Directmedia Layer