binary1248
e185f6d53e
Replace factory functions with throwing constructors
2024-08-08 09:19:32 -06:00
binary1248
698f265277
(Re-)Introduce default constructors and load/open member functions for resource objects that can be reused.
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
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
Miron Alexandru
3ca42c9a45
Update copyright year
2024-01-26 12:00:22 -07:00
Chris Thrasher
36e7a18881
Fix clang-tidy errors
2023-12-23 10:41:02 -06:00
Chris Thrasher
f5497b2db6
Use more in-class member initializers
2023-12-22 21:55:51 -06:00
Chris Thrasher
3d4ea00135
Use sf::Vector2<T>
conversion constructor
2023-12-22 20:32:08 -06:00
kimci86
39da2b829c
Make Keyboard::Key a scoped enumeration
2023-12-22 10:47:30 -06:00
Chris Thrasher
27acbab3d9
Use sf::Rect<T>::getCenter()
in more places
2023-11-20 16:01:36 -07:00
Chris Thrasher
b68482754b
Use std::filesystem::path
for paths
2023-07-27 11:13:45 -06:00
Chris Thrasher
29863b14a5
Remove default sf::Sprite
constructor
2023-05-03 13:33:42 -06:00
Chris Thrasher
2c99b3343a
Remove default sf::Text
constructor
2023-04-05 09:54:56 -06:00
Nikita
1f0167192b
Update to year 2023
2023-01-12 11:38:41 +01:00
Jonny Paton
e01e4760e9
Fix cocoa example - some absolute paths needed in cmake, and float conversion to sf::Angle
2022-09-26 23:50:26 +02:00
Chris Thrasher
a71d60a0c9
Simplify how warnings are ignored on Apple platforms
...
Within files that are only compiled on Apple platforms, we don't
need that redundant check for __APPLE__ so that got removed. Further,
Clang will recognize GCC pragmas so we don't need both Clang AND GCC
pragmas so I removed the Clang pragmas.
Currently GCC fails to compile this code but if one day in the future
that gets fixed, the deprecation warnings will continue to get ignored.
2022-08-03 23:41:01 +02:00
Chris Thrasher
4f52793f7d
Run clang-format
2022-07-11 20:04:56 +02:00
Jan Haller
eb321b3040
Update year to 2022 (master branch)
2022-02-16 13:52:31 +00:00
Lukas Dürrenberger
3cd45a283b
Merge branch '2.6.x' into feature/backmerge
2021-12-20 13:44:56 +01:00
Pawel Paruzel
c824d3d57a
Fix all macOS clang warnings
...
Co-authored-by: binary1248 <binary1248@hotmail.com>
2021-12-20 00:10:55 +01:00
Vittorio Romeo
e9e353a7b2
Remove redundant APIs taking '(x, y)' in favour of ones taking 'sf::Vector'
2021-12-15 11:22:46 +01:00
MrZeusTheCoder
20238e758e
Switch example resources to public domain ones.
2021-04-02 22:16:22 +02:00
swordfatih
498d7ee79c
Update the copyright year to 2021
...
Just updating all the 2020 references to 2021. 😄
2021-01-06 20:21:36 +01:00
Lukas Dürrenberger
9b596cc8d9
Update the copyright year to 2020
2020-09-12 19:34:34 +02:00
EpicCoder
489482a630
Updated the copyright year to 2019
2019-01-08 08:53:33 +01:00
Maximilian Wagenbach
5d7843c58a
Updated the copyright year to 2018.
2018-02-10 14:51:46 +01:00
Lukas Dürrenberger
113152673a
Updated year in copyright notices to 2017.
2017-02-10 15:18:03 +01:00
Marco Antognini
ac50bf8648
Update copyright dates
...
For futur references:
List and inspect © to be updated
$ egrep '2007-[0-9]{4}' -r examples/ tools/ src/ include/ license.txt
Update all ©
$ egrep --null -l '2007-[0-9]{4}' -r examples/ tools/ src/ include/ license.txt | xargs -0 -P4 sed -i '' -E 's/^(.*)2007-[0-9]{4}(.*)$/\12007-2016\2/'
2016-08-05 16:20:39 +02:00
Marco Antognini
9d70da3aaa
Fixed and silenced a few warnings
2016-04-14 12:26:40 +02:00
Zachariah Brown
1de7644277
Updated copyright year and Laurent's email address
2015-03-02 13:41:54 -05:00
Marco Antognini
6e01d1fde7
Improved style of Cocoa example
2014-05-23 09:52:18 +02:00
Marco Antognini
6a5391c0b6
Fixed warnings in Cocoa example
2014-05-23 09:52:18 +02:00
Jan Haller
12d81304e6
Updated copyright year to 2014
2014-02-06 20:08:26 +01:00
Marco Antognini
6f68192272
Update © dates
2013-09-20 18:52:57 +02:00
Marco Antognini
2b8f20c89f
Remove trailing spaces
2013-09-20 18:52:57 +02:00
Marco Antognini
757a785ed7
Updated Cocoa example
...
Now load correctly a font instead of displaying nothing at all.
2012-08-20 19:26:30 +02:00
Marco Antognini
c741b6459f
Updated the copyright text
2012-03-14 14:37:17 +01:00
Marco Antognini
2ef92a2af2
Updated Mac OS X code according to commits ff5b69d312
and 14ac411542
2012-03-12 23:04:06 +01:00
Marco Antognini
2680d3df65
Updated Mac OS X code according to 15e9d999b3
commit
2012-03-09 11:45:37 +01:00
Marco Antognini
2a083ea202
SFML-Cocoa is now part of the cmake-based examples
...
Removes Xcode project
Fixes a crash and
Silences system alerts in this example
2012-01-30 12:23:18 +01:00