Centurion 6.1.0
Release notes
This release features a collection of smaller quality-of-life improvements and fixes, along a few more considerable additions such as the possibility to opt-out from using any of the SDL extension libraries and the color
class supporting construction/conversion from/to hexadecimal color strings and normalized color values.
Configuration
- [+] Added opt-out macros to exclude all Centurion classes and functions related to the SDL extension libraries
- [+]
CENTURION_NO_SDL_TTF
- [+]
CENTURION_NO_SDL_MIXER
- [+]
CENTURION_NO_SDL_IMAGE
- [+]
Events
- [~] Deprecated
keyboard_event::modifier_active()
- [~] Deprecated
dollar_gesture_event::fingers()
- [~] Deprecated
multi_gesture_event::fingers()
- [~] Deprecated
multi_gesture_event::set_fingers()
- [+]
key_mod
alias forkey_modifier
- [+]
operator|
forkey_modifier
- [+]
operator&
forkey_modifier
- [+]
operator~
forkey_modifier
- [+]
keyboard_event::is_active(key_modifier)
- [+]
keyboard_event::is_only_active(key_modifier)
- [+]
keyboard_event::is_only_any_of_active(key_modifier)
- [~] Deprecated
keyboard_event::shift_active()
- [~] Deprecated
keyboard_event::ctrl_active()
- [~] Deprecated
keyboard_event::alt_active()
- [~] Deprecated
keyboard_event::gui_active()
- [~] Deprecated
keyboard_event::caps_active()
- [~] Deprecated
keyboard_event::num_active()
- [+]
dollar_gesture_event::finger_count()
- [+]
multi_gesture_event::set_finger_count()
- [+]
multi_gesture_event::finger_count()
(fixes incorrectfloat
return type with previousfingers()
function) - [+]
event::data()
Input
- [+] Added
shift
,ctrl
,alt
,gui
andreserved
enumerators tokey_modifier
enum.
Video
- [~] Relaxed pre-conditions of
color::from_hsv()
andcolor::from_hsl()
, these functions will now clamp the arguments to be within the respective ranges - [~] Deprecated
double
overloads ofcolor::from_hsv()
andcolor::from_hsl()
, use the newfloat
overloads instead - [+]
color::from_rgb()
- [+]
color::from_rgba()
- [+]
color::from_argb()
- [+]
color::from_norm()
- [+]
color::as_rgb()
- [+]
color::as_rgba()
- [+]
color::as_argb()
- [+]
color::red_norm()
- [+]
color::green_norm()
- [+]
color::blue_norm()
- [+]
color::alpha_norm()
- [+]
gl::bind()
- [+]
gl::unbind()
- [+]
gl_context
/gl_context_handle
aliases forgl::context
/gl::context_handle
, since classes are usually not located in subnamespaces in the rest of the library
Misc
- [+]
usize
alias forstd::size_t
- [~] Improved performance of
to_string()
overloads