Commit Graph

963 Commits

Author SHA1 Message Date
kimci86
62a2a39650 Update copyright year to 2025 (continued) 2025-01-14 19:27:26 +00:00
Lukas Dürrenberger
ec42987cdf Update copyright year to 2025 2025-01-14 11:57:01 +00:00
Lukas Dürrenberger
4764c5104a Add a C++ language version check 2025-01-09 17:28:35 -07:00
Jonny Paton
8316c9e8d5 Make keyboard key/scancode count variables inline 2025-01-07 11:36:17 +00:00
Jonny Paton
d4ff27caad Make pi/tau variables inline 2025-01-04 16:07:41 -07:00
Mark Jansen
74a460206c Remove unused prototype
The rest of the code was deleted in b39be46db0
2025-01-04 16:07:16 -07:00
Chris Thrasher
7ea7622ae3 Fix grammar in docs 2025-01-04 16:07:00 -07:00
Chris Thrasher
796592edae Add non-const overload of sf::Event::getIf 2024-12-29 20:50:38 -06:00
Lukas Dürrenberger
328f38553e Update SFML version to 3.1.0 2024-12-21 11:28:47 -06:00
Lukas Dürrenberger
7f1162dfea Mark code as official release 2024-12-20 23:55:10 +00:00
Lukas Dürrenberger
6f8655590e Add limitation info regarding setMouseCursorVisible 2024-12-19 19:44:28 -06:00
Lukas Dürrenberger
c4d4e8f62a Fix Channel Map size in documentation 2024-12-19 19:44:28 -06:00
Lukas Dürrenberger
03812a545d Add additional documentation regarding channel maps 2024-12-14 16:33:30 -07:00
Lukas Dürrenberger
0d05ed739c Add comment regarding input monitoring access on macOS 2024-12-05 08:38:16 +01:00
Chris Thrasher
ae87def93e Use char32_t for UTF-32 characters
This is probably an oversight from https://github.com/SFML/SFML/pull/2480
2024-11-30 18:28:34 -05:00
Chris Thrasher
574d8295dd Fix bug in sf::Utf32::count 2024-11-27 08:39:39 -07:00
Chris Thrasher
6ece7bdc9b Mention the removal of sf::SoundStream::setProcessingInterval 2024-11-19 17:12:37 -07:00
Chris Thrasher
d8c66ffc8d Remove backticks which are not correctly formatted 2024-11-17 12:58:27 -07:00
kimci86
dff83039aa Do not combine \a with backticks in doxygen comments
Using \a command displays the next word in italics ignoring the markdown
format so \a `something` display `something` in italics including
backticks.
Removing \a so that backticks are properly interpreted.
2024-11-08 19:58:22 -07:00
kimci86
799ca304ce Format index argument as code in shapes getPoint/setPoint documentation
We do the same in sf::Text::findCharacterPos documentation already.
2024-11-08 19:58:22 -07:00
kimci86
a8b0f6fb70 Emphasize words in documentation with markdown syntax 2024-11-08 19:58:22 -07:00
kimci86
25fde58395 Fix doxygen brief description of sf::Angle user-defined literals
Otherwise the brief description ends at "e.g."
2024-11-08 19:58:22 -07:00
kimci86
6f16e3d701 Do not put backticks after \relates doxygen command
to fix unwanted backticks appearing in generated HTML
2024-11-08 19:58:22 -07:00
Chris Thrasher
07875320fe Add missing backtick 2024-11-08 17:00:25 -07:00
Chris Thrasher
06108ddf18 Add missing backtick
https://github.com/SFML/SFML-Website/pull/234#issuecomment-2465666419

Co-authored-by: kimci86 <kimci86@hotmail.fr>
2024-11-08 14:56:31 -07:00
Chris Thrasher
18eb48b13e Disallow C-style arrays 2024-10-17 21:40:41 -06:00
Chris Thrasher
c38b98c653 Upgrade to clang-format-17 2024-10-16 16:41:15 -06:00
ZXShady
d9f3634750 Remove unnecessary trailing return types
The lamdba can deduce the return type correctly having it deducing it
automaticly makes less rooms for mistakes later when we change the impl.
2024-10-07 23:01:34 -06:00
ZXShady
eeef7f9e02 Remove unnecessary friend declarations
These functions do not access any private functions they do not need to be `friend`ed
2024-10-06 13:08:22 -06:00
ZXShady
5ed16195b3 Use correct iterator comparison
Switching the iterator comparison used lowers the requirement for
iterators from *RandomAccessIterators* to *ForwardIterators*, which is a
benefit. It is also more accurate; instead of saying "if `begin` is less
than the end, stop." it states "if `begin` is not equal to end, stop."

Additionally, the old '<' did not protect us from undefined behavior because it is
undefined to compare two iterators relationally that are not:

1. past the end
2. within the array
2024-10-06 11:36:00 -06:00
ZXShady
72207a63ef Use inherited constructors instead of constructor delegation
sf::Exception can use the inheriting constructors functionality instead of a constructor delegating to the parent constructor.

I removed Exception.cpp as it is not needed anymore.
2024-10-05 10:22:49 -06:00
Lukas Dürrenberger
ecb945b341 Use explicit constructors when implicit construction isn't wanted 2024-10-03 22:43:57 -06:00
vittorioromeo
816855d13f Remove sf::Vector2<T>::Unit[XY] 2024-10-03 20:51:09 -06:00
ZXShady
de9286c11f Use explicit conversion operator instead of explicit constructor
I also added a type trait test to check whether the conversion operator is marked explicit.

this change has the advantage of being  clearer imo as it is a conversion operator for conersions not a constructor.

and also it allows users to take the address of convesion operator which I don't know if someone might find that useful.
2024-10-02 00:15:54 +02:00
ZXShady
c8dbd65ff5 use if constexpr instead of a switch statement
The condition is a constant expression, it makes more sense here to use `if constexpr`
2024-10-01 00:00:48 -06:00
vittorioromeo
37de949d87 Actually, don't define 2024-09-30 23:15:18 -06:00
ZXShady
71594d402e delegate to operator equals in operator not equals 2024-09-30 09:03:35 -06:00
Lukas Dürrenberger
6591c59504 Add window create functions without style specifier
This brings the create() functions inline with the constructor overloads
for WindowBase, Window, and RenderWindow
2024-09-16 12:05:59 -04:00
Lukas Dürrenberger
8ff95f7a5e Add the missing ChannelMap to the example code 2024-09-14 09:11:16 +02:00
Chris Thrasher
44b5237148 Fix out of date documentation code 2024-09-12 14:37:07 -06:00
Vittorio Romeo
9c3fcd72d0 Use gender-neutral language in comments 2024-09-12 17:37:10 +02:00
Lukas Dürrenberger
016e201d17 Use backticks for SFML types in doc comments 2024-09-11 16:02:01 -06:00
Chris Thrasher
2b4a72ee06 Fix more outdated references to Mac OS X 2024-09-09 23:42:26 -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
b55327b5b9 Remove unused header 2024-08-31 16:46:47 -06:00
Chris Thrasher
a7f7026804 Fix Doxygen warning 2024-08-31 12:02:59 -06:00
ZXShady
44339c3d67 Fix event handling stack corruption on MSVC 2024-08-30 14:52:48 -06:00
Chris Thrasher
27943ea774 Disallow constructing sf::String from std::nullptr_t 2024-08-30 09:55:55 -06:00
Chris Thrasher
4a463ec136 Throw custom sf::Exception type 2024-08-25 12:17:49 -06:00