30#ifndef SDL_test_font_h_
31#define SDL_test_font_h_
41#define FONT_CHARACTER_SIZE 8
42#define FONT_LINE_HEIGHT (FONT_CHARACTER_SIZE + 2)
struct SDL_Renderer SDL_Renderer
#define SDL_PRINTF_FORMAT_STRING
#define SDL_PRINTF_VARARG_FUNC(fmtargnumber)
void SDLTest_TextWindowAddText(SDLTest_TextWindow *textwin, SDL_PRINTF_FORMAT_STRING const char *fmt,...) SDL_PRINTF_VARARG_FUNC(2)
Add text to a multi-line text output window.
void SDLTest_TextWindowClear(SDLTest_TextWindow *textwin)
Clear the text in a multi-line text output window.
void SDLTest_TextWindowDestroy(SDLTest_TextWindow *textwin)
Free the storage associated with a multi-line text output window.
void SDLTest_TextWindowAddTextWithLength(SDLTest_TextWindow *textwin, const char *text, size_t len)
Add text to a multi-line text output window.
int SDLTest_DrawCharacter(SDL_Renderer *renderer, int x, int y, Uint32 c)
Draw a string in the currently set font.
void SDLTest_TextWindowDisplay(SDLTest_TextWindow *textwin, SDL_Renderer *renderer)
Display a multi-line text output window.
int SDLTest_DrawString(SDL_Renderer *renderer, int x, int y, const char *s)
Draw a UTF-8 string in the currently set font.
SDLTest_TextWindow * SDLTest_TextWindowCreate(int x, int y, int w, int h)
Create a multi-line text output window.
void SDLTest_CleanupTextDrawing(void)
Cleanup textures used by font drawing functions.
Data used for multi-line text output.