SDL_GetCurrentRenderOutputSize

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

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.

extern (C) nothrow @nogc extern
bool
SDL_GetCurrentRenderOutputSize
(,
int* w
,
int* h
)

Parameters

renderer SDL_Renderer*

The rendering context.

w int*

A pointer filled in with the current width.

h int*

A pointer filled in with the current height.

Return Value

Type: bool

true on success or false on failure; call SDL_GetError for more information.

Threadsafety: This function should only be called on the main thread.

See Also

Meta