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
This commit is contained in:
LaurentGom 2010-08-09 18:42:33 +00:00
parent 41d26459ac
commit ce4a18f1d6

View File

@ -39,14 +39,14 @@
/// sprite = sfSprite_Create(); /// sprite = sfSprite_Create();
/// sfSprite_SetImage(sprite, image, sfTrue); /// sfSprite_SetImage(sprite, image, sfTrue);
/// ///
/// /* Create a graphical string to display */ /// /* Create a graphical text to display */
/// font = sfFont_CreateFromFile("arial.ttf"); /// font = sfFont_CreateFromFile("arial.ttf");
/// if (!font) /// if (!font)
/// return EXIT_FAILURE; /// return EXIT_FAILURE;
/// text = sfString_Create(); /// text = sfText_Create();
/// sfText_SetString(text, "Hello SFML"); /// sfText_SetString(text, "Hello SFML");
/// sfText_SetFont(text, font); /// sfText_SetFont(text, font);
/// sfText_SetSize(text, 50); /// sfText_SetCharacterSize(text, 50);
/// ///
/// /* Load a music to play */ /// /* Load a music to play */
/// music = sfMusic_CreateFromFile("nice_music.ogg"); /// music = sfMusic_CreateFromFile("nice_music.ogg");
@ -73,8 +73,8 @@
/// /* Draw the sprite */ /// /* Draw the sprite */
/// sfRenderWindow_DrawSprite(window, sprite); /// sfRenderWindow_DrawSprite(window, sprite);
/// ///
/// /* Draw the string */ /// /* Draw the text */
/// sfRenderWindow_DrawString(window, text); /// sfRenderWindow_DrawText(window, text);
/// ///
/// /* Update the window */ /// /* Update the window */
/// sfRenderWindow_Display(window); /// sfRenderWindow_Display(window);
@ -82,7 +82,7 @@
/// ///
/// /* Cleanup resources */ /// /* Cleanup resources */
/// sfMusic_Destroy(music); /// sfMusic_Destroy(music);
/// sfString_Destroy(text); /// sfText_Destroy(text);
/// sfFont_Destroy(font); /// sfFont_Destroy(font);
/// sfSprite_Destroy(sprite); /// sfSprite_Destroy(sprite);
/// sfImage_Destroy(image); /// sfImage_Destroy(image);