SDL Library
SDL_test_font.h File Reference
Include file for SDL test framework. More...
Go to the source code of this file.
Functions | |
int | SDLTest_DrawCharacter (SDL_Renderer *renderer, int x, int y, char c) |
Draw a string in the currently set font. | |
int | SDLTest_DrawString (SDL_Renderer *renderer, int x, int y, const char *s) |
Draw a string in the currently set font. |
Detailed Description
Include file for SDL test framework.
This code is a part of the SDL2_test library, not the main SDL library.
Definition in file SDL_test_font.h.
Function Documentation
int SDLTest_DrawCharacter | ( | SDL_Renderer * | renderer, |
int | x, | ||
int | y, | ||
char | c | ||
) |
Draw a string in the currently set font.
- Parameters:
-
renderer The renderer to draw on. x The X coordinate of the upper left corner of the character. y The Y coordinate of the upper left corner of the character. c The character to draw.
- Returns:
- Returns 0 on success, -1 on failure.
int SDLTest_DrawString | ( | SDL_Renderer * | renderer, |
int | x, | ||
int | y, | ||
const char * | s | ||
) |
Draw a string in the currently set font.
- Parameters:
-
renderer The renderer to draw on. x The X coordinate of the upper left corner of the string. y The Y coordinate of the upper left corner of the string. s The string to draw.
- Returns:
- Returns 0 on success, -1 on failure.
Generated on Tue Jul 12 2022 15:10:21 by 1.7.2