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
a2c003b2b7
Add sf::State
for specifying fullscreen or floating windows
2024-01-15 23:08:33 -07:00
kimci86
39da2b829c
Make Keyboard::Key a scoped enumeration
2023-12-22 10:47:30 -06:00
Chris Thrasher
2fcdec5153
Remove unnecessary reinterpret_cast
s
2023-11-26 18:08:02 -05:00
Chris Thrasher
fb1cfdc48d
Add misc-const-correctness
clang-tidy check
2023-05-04 16:22:03 -06:00
vittorioromeo
cbfa9cbb65
Reorder includes hierarchically
2023-04-25 17:25:33 +02:00
Chris Thrasher
4f52793f7d
Run clang-format
2022-07-11 20:04:56 +02:00
metaquarx
88e9f82bee
Add '.clang-format' file, CI integration, and formatting exceptions
...
Co-authored-by: Vittorio Romeo <vittorio.romeo@outlook.com>
Co-authored-by: Chris Thrasher <chrisjthrasher@gmail.com>
Co-authored-by: kimci86 <kimci86@hotmail.fr>
2022-07-11 20:04:56 +02:00
Chris Thrasher
539483d329
Use std::array
2022-06-16 23:56:39 +02:00
Chris Thrasher
dbac180db5
Limit the scope of event object
2022-06-08 13:16:40 +02:00
Chris Thrasher
0785093ebc
Use sf::Vector2<T>
for numeric parameter pairs
2022-05-17 08:33:11 +02:00
Vittorio Romeo
363e964acc
Strategic use of '[[nodiscard]]' in 'Graphics' module
2021-12-10 01:27:05 +00:00
Vittorio Romeo
3579ecbdb0
Strategic use of '[[nodiscard]]' in 'Window' module
2021-12-09 19:53:54 +00:00
Lukas Dürrenberger
bc628c6b28
Fix warnings in examples
...
- Convert where necessary
- Adjust type where reasonable
- Use SYSTEM headers for gl.h, stb* and vulkan
2021-11-30 11:25:58 +01:00
Lukas Dürrenberger
2eb70c6537
Replaced glLoadGen loader with glad loader and dynamically load EGL and GLES extensions as is done for desktop GL.
2019-09-12 23:02:52 +02:00
Jonny Paton
353c846c87
Update examples for iOS including touch support, proper handling of window resize, launch screens and icons
2019-01-19 01:34:30 +01:00
Ceylo
82c2f4c05e
All mobile-compatible examples now successfully link
2019-01-19 01:29:12 +01:00
binary1248
97bdf72ce1
Adjusted OpenGL and Window example to request a 24-bit instead of a 32-bit depth buffer since it might not be supported on all systems.
2015-03-23 16:16:05 +01:00
Stefan Schindler
f24ca9a840
Source code changes.
...
* Changed newlines to \n.
* Removed whitespace before colons.
* Fixed several alignments.
2014-10-06 01:18:47 +02:00
Laurent Gomila
c35b48bcea
[iOS] Removed support for examples, it was too much trouble and not as robust as true iOS App Xcode projects
2014-04-20 12:53:22 +02:00
Laurent Gomila
3872b27569
Reworked the sfml-main module, added Main.hpp, moved the main() internal entry point for iOS from sfml-window to sfml-main
2014-04-20 12:53:17 +02:00
Laurent Gomila
4e8e1629d1
Adapted the examples for iOS (WIP)
2014-04-20 12:52:10 +02:00
Laurent Gomila
7c9f9cc41c
Minor fix in Window and OpenGL examples
2013-06-03 20:48:24 +02:00
Laurent Gomila
8cb05fc6d0
Updated the Window and OpenGL examples (got rid of GLU and immediate mode)
2013-05-21 16:57:02 +02:00
Laurent Gomila
14ac411542
Changed the naming convention for public member variables/functions and free functions (using lowerCase instead of UpperCase)
2012-03-11 19:10:37 +01:00
Laurent Gomila
2ee4b99f4d
Minor fix (rotation speed) in the Window example
2012-02-15 22:47:10 +01:00
Laurent Gomila
4116ad033c
Added the sf::Time class
2012-01-19 23:51:06 +01:00
Laurent Gomila
c2039e866c
Renamed Window::IsOpened to IsOpen
...
Made some minor consistency modifications in internal code
2012-01-13 14:53:36 +01:00
Laurent Gomila
8621e45960
Implemented global inputs (sf::Keyboard, sf::Mouse, sf::Joystick) and removed the event-based sf::Input.
...
Window::WaitEvent now works with joystick events as well.
Added Event::JoystickConnected and Event::JoystickDisconnected.
Added Window::GetCursorPosition.
2011-07-04 08:21:40 +02:00
Laurent Gomila
e4c6c30e0b
Times in SFML are now Uint32 milliseconds instead of float seconds
...
Added the sf::Uint64 and sf::Int64 types
2011-05-19 08:19:42 +02:00
Laurent Gomila
df6874273a
Renamed Window::GetEvent to PollEvent
2011-04-11 18:20:21 +02:00
Laurent Gomila
6676d77ea1
Updated the C and .Net bindings according to the previous modifications
2011-04-04 23:37:20 +02:00
LaurentGom
a991fe8e4d
Added support for the CMake build system
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1550 4e206d99-4929-0410-ac5d-dfc041789085
2010-08-19 15:59:24 +00:00