From ce4a18f1d6761149a440caee9d49dd3fa21ebb63 Mon Sep 17 00:00:00 2001 From: LaurentGom Date: Mon, 9 Aug 2010 18:42:33 +0000 Subject: [PATCH] More fixes to the code example of the CSFML API documentation git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1547 4e206d99-4929-0410-ac5d-dfc041789085 --- CSFML/doc/build/Doxygen.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CSFML/doc/build/Doxygen.hpp b/CSFML/doc/build/Doxygen.hpp index 421b0fe3..b300a86a 100644 --- a/CSFML/doc/build/Doxygen.hpp +++ b/CSFML/doc/build/Doxygen.hpp @@ -39,14 +39,14 @@ /// sprite = sfSprite_Create(); /// sfSprite_SetImage(sprite, image, sfTrue); /// -/// /* Create a graphical string to display */ +/// /* Create a graphical text to display */ /// font = sfFont_CreateFromFile("arial.ttf"); /// if (!font) /// return EXIT_FAILURE; -/// text = sfString_Create(); +/// text = sfText_Create(); /// sfText_SetString(text, "Hello SFML"); /// sfText_SetFont(text, font); -/// sfText_SetSize(text, 50); +/// sfText_SetCharacterSize(text, 50); /// /// /* Load a music to play */ /// music = sfMusic_CreateFromFile("nice_music.ogg"); @@ -73,8 +73,8 @@ /// /* Draw the sprite */ /// sfRenderWindow_DrawSprite(window, sprite); /// -/// /* Draw the string */ -/// sfRenderWindow_DrawString(window, text); +/// /* Draw the text */ +/// sfRenderWindow_DrawText(window, text); /// /// /* Update the window */ /// sfRenderWindow_Display(window); @@ -82,7 +82,7 @@ /// /// /* Cleanup resources */ /// sfMusic_Destroy(music); -/// sfString_Destroy(text); +/// sfText_Destroy(text); /// sfFont_Destroy(font); /// sfSprite_Destroy(sprite); /// sfImage_Destroy(image);