Skip to content

Centurion 6.1.0

Compare
Choose a tag to compare
@albin-johansson albin-johansson released this 16 Jul 14:49
b0674e6

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 for key_modifier
  • [+] operator| for key_modifier
  • [+] operator& for key_modifier
  • [+] operator~ for key_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 incorrect float return type with previous fingers() function)
  • [+] event::data()

Input

  • [+] Added shift, ctrl, alt, gui and reserved enumerators to key_modifier enum.

Video

  • [~] Relaxed pre-conditions of color::from_hsv() and color::from_hsl(), these functions will now clamp the arguments to be within the respective ranges
  • [~] Deprecated double overloads of color::from_hsv() and color::from_hsl(), use the new float 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 for gl::context/gl::context_handle, since classes are usually not located in subnamespaces in the rest of the library

Misc

  • [+] usize alias for std::size_t
  • [~] Improved performance of to_string() overloads