mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-27 05:26:13 +01:00
Remove trailing whitespace
This commit is contained in:
1 parent
2493f13baa
commit
e67340f1c5
2 files changed
+13
-13
No files matched your search
+10
-10
@@ -14,7 +14,7 @@
|
|||||||
///
|
///
|
||||||
/// #include <SFML/Audio.h>
|
/// #include <SFML/Audio.h>
|
||||||
/// #include <SFML/Graphics.h>
|
/// #include <SFML/Graphics.h>
|
||||||
///
|
///
|
||||||
/// int main()
|
/// int main()
|
||||||
/// {
|
/// {
|
||||||
/// sfVideoMode mode = {800, 600, 32};
|
/// sfVideoMode mode = {800, 600, 32};
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
/// return EXIT_FAILURE;
|
/// return EXIT_FAILURE;
|
||||||
/// sprite = sfSprite_create();
|
/// sprite = sfSprite_create();
|
||||||
/// sfSprite_setTexture(sprite, texture, true);
|
/// sfSprite_setTexture(sprite, texture, true);
|
||||||
///
|
///
|
||||||
/// /* Create a graphical text to display */
|
/// /* Create a graphical text to display */
|
||||||
/// font = sfFont_createFromFile("arial.ttf");
|
/// font = sfFont_createFromFile("arial.ttf");
|
||||||
/// if (!font)
|
/// if (!font)
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
/// sfText_setString(text, "Hello SFML");
|
/// sfText_setString(text, "Hello SFML");
|
||||||
/// sfText_setFont(text, font);
|
/// sfText_setFont(text, font);
|
||||||
/// sfText_setCharacterSize(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");
|
||||||
/// if (!music)
|
/// if (!music)
|
||||||
@@ -54,7 +54,7 @@
|
|||||||
///
|
///
|
||||||
/// /* Play the music */
|
/// /* Play the music */
|
||||||
/// sfMusic_play(music);
|
/// sfMusic_play(music);
|
||||||
///
|
///
|
||||||
/// /* Start the game loop */
|
/// /* Start the game loop */
|
||||||
/// while (sfRenderWindow_isOpen(window))
|
/// while (sfRenderWindow_isOpen(window))
|
||||||
/// {
|
/// {
|
||||||
@@ -65,20 +65,20 @@
|
|||||||
/// if (event.type == sfEvtClosed)
|
/// if (event.type == sfEvtClosed)
|
||||||
/// sfRenderWindow_close(window);
|
/// sfRenderWindow_close(window);
|
||||||
/// }
|
/// }
|
||||||
///
|
///
|
||||||
/// /* Clear the screen */
|
/// /* Clear the screen */
|
||||||
/// sfRenderWindow_clear(window, sfBlack);
|
/// sfRenderWindow_clear(window, sfBlack);
|
||||||
///
|
///
|
||||||
/// /* Draw the sprite */
|
/// /* Draw the sprite */
|
||||||
/// sfRenderWindow_drawSprite(window, sprite, NULL);
|
/// sfRenderWindow_drawSprite(window, sprite, NULL);
|
||||||
///
|
///
|
||||||
/// /* Draw the text */
|
/// /* Draw the text */
|
||||||
/// sfRenderWindow_drawText(window, text, NULL);
|
/// sfRenderWindow_drawText(window, text, NULL);
|
||||||
///
|
///
|
||||||
/// /* Update the window */
|
/// /* Update the window */
|
||||||
/// sfRenderWindow_display(window);
|
/// sfRenderWindow_display(window);
|
||||||
/// }
|
/// }
|
||||||
///
|
///
|
||||||
/// /* Cleanup resources */
|
/// /* Cleanup resources */
|
||||||
/// sfMusic_destroy(music);
|
/// sfMusic_destroy(music);
|
||||||
/// sfText_destroy(text);
|
/// sfText_destroy(text);
|
||||||
@@ -86,7 +86,7 @@
|
|||||||
/// sfSprite_destroy(sprite);
|
/// sfSprite_destroy(sprite);
|
||||||
/// sfTexture_destroy(texture);
|
/// sfTexture_destroy(texture);
|
||||||
/// sfRenderWindow_destroy(window);
|
/// sfRenderWindow_destroy(window);
|
||||||
///
|
///
|
||||||
/// return EXIT_SUCCESS;
|
/// return EXIT_SUCCESS;
|
||||||
/// }
|
/// }
|
||||||
/// \endcode
|
/// \endcode
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# CSFML NuGet Packages
|
# CSFML NuGet Packages
|
||||||
This directory contains all the files needed to build and package the native CSFML libraries for [SFML.Net](github.com/SFML/SFML.Net).
|
This directory contains all the files needed to build and package the native CSFML libraries for [SFML.Net](github.com/SFML/SFML.Net).
|
||||||
**All scripts must be run from the directory they are located in**.
|
**All scripts must be run from the directory they are located in**.
|
||||||
That means that your current working directory (`$PWD`) must be the same where the script is.
|
That means that your current working directory (`$PWD`) must be the same where the script is.
|
||||||
|
|
||||||
All build scripts follow the same routine:
|
All build scripts follow the same routine:
|
||||||
@@ -11,11 +11,11 @@ All build scripts follow the same routine:
|
|||||||
|
|
||||||
|
|
||||||
* `build.win.ps1`
|
* `build.win.ps1`
|
||||||
* A [PowerShell](https://github.com/PowerShell/PowerShell) script to build Windows native libraries. By default, both `win-x86` and `win-x64` are built. To build only one specific Runtime Identifier, pass it to the script as a parameter (`./build.win.ps1 win-x64`)
|
* A [PowerShell](https://github.com/PowerShell/PowerShell) script to build Windows native libraries. By default, both `win-x86` and `win-x64` are built. To build only one specific Runtime Identifier, pass it to the script as a parameter (`./build.win.ps1 win-x64`)
|
||||||
You must have Visual Studio 2019, cmake, and the Windows SDK 10 installed to run this script.
|
You must have Visual Studio 2019, cmake, and the Windows SDK 10 installed to run this script.
|
||||||
|
|
||||||
* `build.linux.sh`
|
* `build.linux.sh`
|
||||||
* A [Bash](https://www.gnu.org/software/bash/) script to build libraries for a generic Linux distribution. The [Runtime Identifier](https://docs.microsoft.com/en-us/dotnet/core/rid-catalog) of the linux distribution must be specified as a parameter to the script.
|
* A [Bash](https://www.gnu.org/software/bash/) script to build libraries for a generic Linux distribution. The [Runtime Identifier](https://docs.microsoft.com/en-us/dotnet/core/rid-catalog) of the linux distribution must be specified as a parameter to the script.
|
||||||
This generic script doesn't install any of its dependencies. As such, you must have cmake and make installed, as well as all [SFML Dependencies](https://www.sfml-dev.org/tutorials/2.6/compile-with-cmake.php#installing-dependencies) available to cmake.
|
This generic script doesn't install any of its dependencies. As such, you must have cmake and make installed, as well as all [SFML Dependencies](https://www.sfml-dev.org/tutorials/2.6/compile-with-cmake.php#installing-dependencies) available to cmake.
|
||||||
|
|
||||||
* `build.macos.sh`
|
* `build.macos.sh`
|
||||||
|
|||||||
Reference in new issue
Block a user