Commit Graph

77 Commits

Author SHA1 Message Date
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
Lukas Dürrenberger
35725cd2df Only use 3 columns in the index 2018-05-06 08:42:42 +02:00
Leonid Olevskiy
ceee41eaf4 Update doxygen.css
Set pointer cursor on arrows
2018-05-06 08:42:41 +02:00
Gravechapa
d7fffae727 Updated doxygen file 2018-05-06 08:42:41 +02:00
Ceylo
ee08e18726 Modernize CMake files 2018-03-27 00:03:34 +02:00
Maximilian Wagenbach
989367e345 Turned the header image in readme.md into a link.
Updated all links to use https (tested).
2018-02-10 17:12:54 +01:00
papychacal
341bc2a130 Added Tagfile generation and finding 2018-01-25 22:00:38 +01:00
Mario Liebisch
9f6f02f988 Android: Added sf::getNativeActivity() to retrieve a handle to the current activity
This is only implemented for Android builds and requires the user to include the sub-header specifically. Other platforms will trigger a compiler error, if they try to include this header file.
2016-04-22 15:53:14 +02:00
Marco Antognini
0df97b4813 Updated platform-specific handle documentation 2015-11-06 18:24:42 +01:00
Jan Haller
9c5c750e60 Added new methods to set uniforms in sf::Shader
Implements a new design for the shader uniform API.
* Added Shader::setUniform() and Shader::setUniformArray() overloads for the following types:
  -> scalars: float, int, bool
  -> vectors: 2D, 3D, 4D
  -> matrices: 3x3, 4x4
  -> arrays of basic types
  -> samplers (sf::Texture)
  -> conversions for SFML types (sf::Transform, sf::Color)
* Added sf::Glsl namespace with GLSL-equivalent types
* Deprecated Shader::setParameter() overloads

Other related changes:
* Refactored sf::Shader internals to avoid code duplication
* Improved documentation
* Added SFML_DEPRECATED macro to Doxyfile
* Defined _SCL_SECURE_NO_WARNINGS to disable std::copy() warnings on MSVC
2015-10-21 10:29:07 +02:00
binary1248
e80bf0ba92 Fix whitespace: Convert tabs to spaces and remove trailing whitespace. 2015-04-15 01:53:43 +02:00
Oleh Prypin
01d5d1b463 Replaced non-ASCII symbols with equivalents 2015-03-10 02:04:02 +02:00
Mario Liebisch
6ca9f66a06 Fixed HTML Help Workshop not being found on 64-bit Windows 2015-02-24 13:59:06 +01:00
Marco Antognini
b0d6c2bea9 Added version in doc header 2014-12-27 20:57:57 +01:00
Lukas Dürrenberger
8b7ac65aa3 Fixed the namespace and class icon issue and updated the Doxygen file. 2014-12-27 20:57:55 +01:00