SDL_RenderDebugTextFormat

Draw debug text to an SDL_Renderer.

This function will render a printf()-style format string to a renderer. Note that this is a convinence function for debugging, with severe limitations, and is not intended to be used for production apps and games.

For the full list of limitations and other useful information, see SDL_RenderDebugText.

extern (C) nothrow @nogc extern
bool
SDL_RenderDebugTextFormat
(,
float x
,
float y
,
const(char)* fmt
,)

Parameters

renderer SDL_Renderer*

The renderer which should draw the text.

x float

The x coordinate where the top-left corner of the text will draw.

y float

The y coordinate where the top-left corner of the text will draw.

fmt const(char)*

The format string to draw.

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