Fixed the code example of the CSFML API documentation
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1546 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
ff2c4f2ee7
commit
41d26459ac
12
CSFML/doc/build/Doxygen.hpp
vendored
12
CSFML/doc/build/Doxygen.hpp
vendored
@ -23,7 +23,7 @@
|
|||||||
/// sfImage* image;
|
/// sfImage* image;
|
||||||
/// sfSprite* sprite;
|
/// sfSprite* sprite;
|
||||||
/// sfFont* font;
|
/// sfFont* font;
|
||||||
/// sfString* text;
|
/// sfText* text;
|
||||||
/// sfMusic* music;
|
/// sfMusic* music;
|
||||||
/// sfEvent event;
|
/// sfEvent event;
|
||||||
///
|
///
|
||||||
@ -37,16 +37,16 @@
|
|||||||
/// if (!image)
|
/// if (!image)
|
||||||
/// return EXIT_FAILURE;
|
/// return EXIT_FAILURE;
|
||||||
/// sprite = sfSprite_Create();
|
/// sprite = sfSprite_Create();
|
||||||
/// sfSprite_SetImage(sprite, image);
|
/// sfSprite_SetImage(sprite, image, sfTrue);
|
||||||
///
|
///
|
||||||
/// /* Create a graphical string to display */
|
/// /* Create a graphical string to display */
|
||||||
/// font = sfFont_CreateFromFile("arial.ttf", 50, NULL);
|
/// font = sfFont_CreateFromFile("arial.ttf");
|
||||||
/// if (!font)
|
/// if (!font)
|
||||||
/// return EXIT_FAILURE;
|
/// return EXIT_FAILURE;
|
||||||
/// text = sfString_Create();
|
/// text = sfString_Create();
|
||||||
/// sfString_SetText(text, "Hello SFML");
|
/// sfText_SetString(text, "Hello SFML");
|
||||||
/// sfString_SetFont(text, font);
|
/// sfText_SetFont(text, font);
|
||||||
/// sfString_SetSize(text, 50);
|
/// sfText_SetSize(text, 50);
|
||||||
///
|
///
|
||||||
/// /* Load a music to play */
|
/// /* Load a music to play */
|
||||||
/// music = sfMusic_CreateFromFile("nice_music.ogg");
|
/// music = sfMusic_CreateFromFile("nice_music.ogg");
|
||||||
|
Loading…
Reference in New Issue
Block a user