SDL 3.0
SDL_test_font.h File Reference
+ Include dependency graph for SDL_test_font.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SDLTest_TextWindow
 

Macros

#define FONT_LINE_HEIGHT   (FONT_CHARACTER_SIZE + 2)
 

Functions

bool SDLTest_DrawCharacter (SDL_Renderer *renderer, float x, float y, Uint32 c)
 
bool SDLTest_DrawString (SDL_Renderer *renderer, float x, float y, const char *s)
 
SDLTest_TextWindowSDLTest_TextWindowCreate (float x, float y, float w, float h)
 
void SDLTest_TextWindowDisplay (SDLTest_TextWindow *textwin, SDL_Renderer *renderer)
 
void SDLTest_TextWindowAddText (SDLTest_TextWindow *textwin, SDL_PRINTF_FORMAT_STRING const char *fmt,...) SDL_PRINTF_VARARG_FUNC(2)
 
void SDLTest_TextWindowAddTextWithLength (SDLTest_TextWindow *textwin, const char *text, size_t len)
 
void SDLTest_TextWindowClear (SDLTest_TextWindow *textwin)
 
void SDLTest_TextWindowDestroy (SDLTest_TextWindow *textwin)
 
void SDLTest_CleanupTextDrawing (void)
 

Variables

int FONT_CHARACTER_SIZE
 

Macro Definition Documentation

◆ FONT_LINE_HEIGHT

#define FONT_LINE_HEIGHT   (FONT_CHARACTER_SIZE + 2)

Definition at line 45 of file SDL_test_font.h.

Function Documentation

◆ SDLTest_CleanupTextDrawing()

void SDLTest_CleanupTextDrawing ( void )

◆ SDLTest_DrawCharacter()

bool SDLTest_DrawCharacter ( SDL_Renderer * renderer,
float x,
float y,
Uint32 c )

◆ SDLTest_DrawString()

bool SDLTest_DrawString ( SDL_Renderer * renderer,
float x,
float y,
const char * s )

◆ SDLTest_TextWindowAddText()

void SDLTest_TextWindowAddText ( SDLTest_TextWindow * textwin,
SDL_PRINTF_FORMAT_STRING const char * fmt,
... )

◆ SDLTest_TextWindowAddTextWithLength()

void SDLTest_TextWindowAddTextWithLength ( SDLTest_TextWindow * textwin,
const char * text,
size_t len )

◆ SDLTest_TextWindowClear()

void SDLTest_TextWindowClear ( SDLTest_TextWindow * textwin)

◆ SDLTest_TextWindowCreate()

SDLTest_TextWindow * SDLTest_TextWindowCreate ( float x,
float y,
float w,
float h )

◆ SDLTest_TextWindowDestroy()

void SDLTest_TextWindowDestroy ( SDLTest_TextWindow * textwin)

◆ SDLTest_TextWindowDisplay()

void SDLTest_TextWindowDisplay ( SDLTest_TextWindow * textwin,
SDL_Renderer * renderer )

Variable Documentation

◆ FONT_CHARACTER_SIZE

int FONT_CHARACTER_SIZE
extern