diff options
author | MAN-AT-ARMS <donny@ecgnetwork.com> | 2014-03-08 22:00:38 -0500 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2014-08-28 11:03:31 +0100 |
commit | 57e0583885b51fb736589f6187facfcfb9d06a67 (patch) | |
tree | 2d48bf168880a3d5a0cbe3f6d5660db4cbb30995 /src/SDL2/include/SDL_test_font.h | |
parent | 482262a75610e63d2a779fea5b37b8206d87e947 (diff) |
Update SDL2 to 2.0.2
Diffstat (limited to 'src/SDL2/include/SDL_test_font.h')
-rw-r--r-- | src/SDL2/include/SDL_test_font.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/SDL2/include/SDL_test_font.h b/src/SDL2/include/SDL_test_font.h index aa9286b4..8d51d4a9 100644 --- a/src/SDL2/include/SDL_test_font.h +++ b/src/SDL2/include/SDL_test_font.h @@ -1,6 +1,6 @@ /* Simple DirectMedia Layer - Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org> + Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages @@ -38,6 +38,20 @@ extern "C" { /* Function prototypes */ +#define FONT_CHARACTER_SIZE 8 + +/** + * \brief Draw a string in the currently set font. + * + * \param renderer The renderer to draw on. + * \param x The X coordinate of the upper left corner of the character. + * \param y The Y coordinate of the upper left corner of the character. + * \param c The character to draw. + * + * \returns Returns 0 on success, -1 on failure. + */ +int SDLTest_DrawCharacter( SDL_Renderer *renderer, int x, int y, char c ); + /** * \brief Draw a string in the currently set font. * @@ -48,7 +62,7 @@ extern "C" { * * \returns Returns 0 on success, -1 on failure. */ -int SDLTest_DrawString(SDL_Renderer * renderer, int x, int y, const char *s); +int SDLTest_DrawString( SDL_Renderer * renderer, int x, int y, const char *s ); /* Ends C function definitions when using C++ */ |