Skip to content

0.4.0

Compare
Choose a tag to compare
@hecrj hecrj released this 25 Apr 00:16
· 4 commits to master since this release

Added

  • Task::succeed, which replaces the old Task::new. #66
  • Default implementation for ui::widget::slider::State.
  • Default, Clone, Copy, PartialEq, and Eq implementations for ui::widget::button::State.
  • Additional color constants: Color::RED, Color::GREEN, and Color::BLUE. #77
  • Color::from_rgb_u32, which allows to constructs a Color using an hexadecimal literal (0xRRGGBB). #77
  • From<nalgebra::Matrix3> and Into<nalgebra::Matrix3> implementations for Transformation. #78
  • Game::is_finished, which allows to gracefully quit the game on demand. #79
  • Canvas::read_pixels, a method to read the contents of a Canvas as a DynamicImage from the image crate.
  • ui::Panel, a dark box that can be used to wrap a widget.
  • ui::ProgressBar, a progress bar to give visual feedback to your users when performing a slow task.
  • ui::Image, a simple widget to display a graphics::Image in your user interface.
  • Mesh::new_with_tolerance, which allows to control the tolerance of line segment approximations. #100
  • Game::cursor_icon, which allows customization of the mouse cursor icon.

Changed

  • Mesh::stroke now takes an f32 as line_width instead of a u16.
  • Task::new now supports a lazy operation that can fail. #66
  • Face culling has been disabled for Vulkan, Metal, D3D11, and D3D12 backends. In OpenGL, face culling was already disabled.
  • Transformation::nonuniform_scale now takes a Vector. #78
  • The logic of KeyboardAndMouse has been split into the new Keyboard and Mouse input trackers. The new mouse and keyboard methods can be used to obtain them, respectively. #69
  • The Mouse type can now track additional input:
    • any button click #67
    • wheel movements #67
    • the cursor leaving/entering the game window #67
  • The mesh example now has a slider to control the tolerance. #100

Fixed

  • Hang when Game::TICKS_PER_SECOND is set as 0. #99