SDL_RenderDebugTextFormat - Draw debug text to an SDL_Renderer.
Contents
Availability
This function is available since SDL 3.2.0.
Description
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.
Function Parameters
renderer
the renderer which should draw the text.
x the x coordinate where the top-left corner of the text will draw.
y the y coordinate where the top-left corner of the text will draw.
fmt the format string to draw.
... additional parameters matching % tokens in the fmt string, if any.
Name
SDL_RenderDebugTextFormat - Draw debug text to an SDL_Renderer.
Return Value
for more information.
See Also
SDL_RenderDebugText(3), SDL_DEBUG_TEXT_FONT_CHARACTER_SIZE(3) Simple Directmedia Layer SDL 3.2.20 SDL_RenderDebugTextFormat(3)
Synopsis
#include<SDL3/SDL_render.h>boolSDL_RenderDebugTextFormat(SDL_Renderer*renderer,floatx,floaty,constchar*fmt,...);
Thread Safety
This function should only be called on the main thread.
