Commit Graph

91 Commits

Author SHA1 Message Date
Chris Thrasher
7eab4606e0 Use standard CMake variables for Doxygen paths 2024-09-12 12:21:09 -06:00
Chris Thrasher
acc87dfd32 Simplify how Doxygen CMake variables are set 2024-09-12 12:21:09 -06:00
Chris Thrasher
157d4d9163 Stop using deprecated DOXYGEN_EXECUTABLE variable
This was deprecated in CMake 3.9.

See https://cmake.org/cmake/help/v3.22/module/FindDoxygen.html#variable:DOXYGEN_EXECUTABLE
2024-09-11 13:48:12 -06:00
Chris Thrasher
7fdce1235e Link to migration guide from changelog 2024-09-10 12:03:01 -06:00
Lukas Dürrenberger
9f52cfec39 Change spelling of anti-aliasing 2024-09-09 18:37:00 -06:00
Lukas Dürrenberger
265a0cb03f Rename Vector2 & Vector3 functions to better fit the naming convention 2024-09-08 12:09:32 -06:00
Chris Thrasher
73e5abe583 Fix typo in migration guide 2024-09-01 08:59:58 -06:00
Chris Thrasher
8ed98e337b Treat Doxygen warnings as errors 2024-08-31 12:02:59 -06:00
Chris Thrasher
705aa7e891 Add migration guide 2024-08-30 08:41:24 -06:00
binary1248
e185f6d53e Replace factory functions with throwing constructors 2024-08-08 09:19:32 -06:00
kimci86
fca4fa1aa2 Rename Font::loadFromFile into Font::openFromFile
Similar renaming for Font::loadFromMemory and Font::loadFromStream.
The goal is to better express the need to keep the source available,
similar to Music::openFromFile for example.
2024-06-25 22:53:28 +02:00
vittorioromeo
86c1a71a93 Remove default empty state of sf::Event 2024-06-23 19:11:10 +02:00
copyrat90
37ac80dbe5 Update documentation of creating Music and Cursor 2024-06-11 12:29:31 +02:00
Chris Thrasher
bfd65989e9 Remove default empty state of sf::Texture 2024-06-04 13:19:58 -06:00
Chris Thrasher
504b850f03 Remove default empty state of sf::Font 2024-05-19 14:01:54 -06:00
Chris Thrasher
207b54e445
Merge branch '2.6.x' into feature/backmerge 2024-05-13 21:07:03 -06:00
kimci86
b7e1a259f0 Update icons urls and color 2024-05-09 09:41:07 +02:00
kimci86
0d6a5f7fbe Make the new doxygen clipboard feature work and look good
CSS rules copied from doxygen default stylesheet generated with:
    doxygen -w html new_header.html new_footer.html new_stylesheet.css
2024-05-09 09:41:07 +02:00
kimci86
7f27cad9ae Fix search.js "Uncaught ReferenceError: Cookie is not defined" 2024-05-09 09:41:07 +02:00
Lukas Dürrenberger
66c5fae7c1 Fix XHTML Doxygen docs inconsistencies 2024-05-09 09:41:07 +02:00
Lukas Dürrenberger
891e567346 Fix missing namespace and file references 2024-05-09 09:41:07 +02:00
Lukas Dürrenberger
8d88e633e5 Update doxygen input file for doxygen 1.10.0 2024-05-09 09:41:07 +02:00
Lukas Dürrenberger
d95f99acf1 Fix configuration conflict in doxygen 1.10.0 2024-05-09 09:41:07 +02:00
trustytrojan
ca0a231b35 Add operator bool() to sf::Event for checking if the event type is not Empty 2024-05-03 22:50:59 +00:00
Chris Thrasher
59447dd8e5 Rewrite sf::Event API to improve type safety
This new API is built on top of std::variant. This allows us to
store many different event types in a space-efficient way and access
the active event type in a type-safe manner that eliminates the
categories of UB that are possible with unions.

Co-authored-by: kimci86 <kimci86@hotmail.fr>
2024-05-01 18:00:58 +00:00
Chris Thrasher
dd706d6aed Remove leading newlines 2023-11-16 12:02:28 -07:00
Chris Thrasher
3a0d074b2f Remove trailing whitespace
Some of these files either aren't processed by clang-format or the
trailing whitespace existed within blocks of code where we disabled
clang-format.
2023-09-19 13:30:27 -06:00
Chris Thrasher
ddfb7f6cb0 Use modern name for macOS
In a few places I left references to the old name where appropriate.
There are also many CMake references to "OSX" that we have to keep
using since CMake does not offer alternative names for those variables
and target properties.
2023-07-24 21:25:26 -06:00
Lukas Dürrenberger
48fde44047 Merge branch '2.6.x' into master 2023-06-21 13:31:16 +02:00
Chris Thrasher
d131beb0fd Fix misspellings
I used the Python tool codespell to find these
2023-05-21 14:37:46 -06:00
kimci86
a21c3c101c Configure doxygen STRIP_FROM_INC_PATH option
so that include directives are correct in the generated documentation.
2023-04-11 22:33:57 +02:00
Chris Thrasher
2c99b3343a Remove default sf::Text constructor 2023-04-05 09:54:56 -06:00
Chris Thrasher
5ebba36d16
Merge branch '2.6.x' into feature/backmerge 2023-04-01 15:23:48 -06:00
Lukas Dürrenberger
2151ea5c1d Align search box styling with the doc style
- Update doxyfile.in file to v1.9.6
- Add additional search box CSS overrides
2023-03-28 22:46:04 +02:00
Chris Thrasher
bc5ddb3495 Don't automatically build docs
This means you can leave the docs enabled in the build without being
constantly spammed by all the console output that entails.

https://salsa.debian.org/games-team/libsfml/-/blob/master/debian/patches/02_build-doc-once.patch
2023-03-23 09:57:16 -06:00
Chris Thrasher
2df79840c4 Remove commented out CSS tag
https://salsa.debian.org/games-team/libsfml/-/blob/master/debian/patches/01_remove-googleapi-css.patch
2023-03-23 09:57:16 -06:00
Shiv
ca5ca65004
Removed return EXIT_SUCCESS and cstdlib 2023-01-23 10:00:48 +01:00
Christian Ivicevic
a9f33999dc
Fix outdated use of the sf::VideoMode constructor 2022-11-22 14:55:52 +01:00
Chris Thrasher
a5dbe59f07
Merge branch '2.6.x' 2022-10-13 14:33:11 -06:00
kimci86
863fef0246 Fix broken image URLs in doxygen.css 2022-08-03 23:55:43 +02:00
kimci86
6972463848 Enable doxygen search engine 2022-08-03 23:55:43 +02:00
kimci86
2b11d3ee0f Set mainpage title
The default title with doxygen 1.9.4 is "SFML" instead of "SFML
Documentation" as it was before, so we set the title manually.
2022-08-03 23:55:43 +02:00
kimci86
1b71e3d389 Update doxyfile.in for doxygen 1.9.4
Steps to update doxyfile.in:
- Run `doxygen -u doxyfile.in`
- Put back comments about SFML specific aliases.
- Add quotes around CMake variables for paths as they may be substituted
  with values containing space characters.
2022-08-03 23:55:43 +02:00
Chris Thrasher
dbac180db5 Limit the scope of event object 2022-06-08 13:16:40 +02:00
Chris Thrasher
2f2284955e Use list(APPEND to simplify modifying variables 2022-02-17 14:39:07 +01:00
Chris Thrasher
a322d18e63 Use built-in CMake project version functionality 2022-01-21 21:09:20 +01:00
Vittorio Romeo
4e1fcb3775 Remove 'SFML_DEPRECATED' and replace internal usages with '[[deprecated]]' 2021-12-03 19:36:47 +01:00
Lukas Dürrenberger
0337568846 Remove link in documentation main page
For locally generated documentation the link should not point to a PHP page. 
The easiest solution is to remove it, given that the same link is available in the navigation.
2020-05-27 01:12:50 +02:00
kimci86
80c3bdc23c Fix CMake scripts to install and find doxygen's generated SFML.tag file 2019-11-19 09:26:49 +01:00
Jonny
27a4c83ebc Use GnuInstallDirs module for cmake install paths 2019-09-01 21:48:10 +02:00