SDL_GetRenderOutputSize

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.

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

Parameters

renderer SDL_Renderer*

The rendering context.

w int*

A pointer filled in with the width in pixels.

h int*

A pointer filled in with the height in pixels.

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