Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions doc/mainpage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
///
/// #include <SFML/Audio.h>
/// #include <SFML/Graphics.h>
///
///
/// int main()
/// {
/// sfVideoMode mode = {800, 600, 32};
Expand All @@ -37,7 +37,7 @@
/// return EXIT_FAILURE;
/// sprite = sfSprite_create();
/// sfSprite_setTexture(sprite, texture, true);
///
///
/// /* Create a graphical text to display */
/// font = sfFont_createFromFile("arial.ttf");
/// if (!font)
Expand All @@ -46,15 +46,15 @@
/// sfText_setString(text, "Hello SFML");
/// sfText_setFont(text, font);
/// sfText_setCharacterSize(text, 50);
///
///
/// /* Load a music to play */
/// music = sfMusic_createFromFile("nice_music.ogg");
/// if (!music)
/// return EXIT_FAILURE;
///
/// /* Play the music */
/// sfMusic_play(music);
///
///
/// /* Start the game loop */
/// while (sfRenderWindow_isOpen(window))
/// {
Expand All @@ -65,28 +65,28 @@
/// if (event.type == sfEvtClosed)
/// sfRenderWindow_close(window);
/// }
///
///
/// /* Clear the screen */
/// sfRenderWindow_clear(window, sfBlack);
///
///
/// /* Draw the sprite */
/// sfRenderWindow_drawSprite(window, sprite, NULL);
///
///
/// /* Draw the text */
/// sfRenderWindow_drawText(window, text, NULL);
///
///
/// /* Update the window */
/// sfRenderWindow_display(window);
/// }
///
///
/// /* Cleanup resources */
/// sfMusic_destroy(music);
/// sfText_destroy(text);
/// sfFont_destroy(font);
/// sfSprite_destroy(sprite);
/// sfTexture_destroy(texture);
/// sfRenderWindow_destroy(window);
///
///
/// return EXIT_SUCCESS;
/// }
/// \endcode
Expand Down
6 changes: 3 additions & 3 deletions tools/nuget/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 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).
**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.

All build scripts follow the same routine:
Expand All @@ -11,11 +11,11 @@ All build scripts follow the same routine:


* `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`)
Copy link
Copy Markdown
Contributor

@kimci86 kimci86 Feb 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two trailing whitespaces mean a linebreak in markdown.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related discussion: #218 (comment)

Copy link
Copy Markdown
Member

@eXpl0it3r eXpl0it3r Feb 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep

Before:

image

After:

image

It's not really bad here, but I think kimci86 mentioned that on another PR once before. Something to keep in mind when "formatting" markdown files.

Edit: Got 🥷-ed with that comment link 😄

* 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.

* `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.

* `build.macos.sh`
Expand Down