Coffee v0.4.1 Release Notes
Release Date: 2020-05-11 // almost 5 years ago-
🛠 Fixed
- Crashes when using Metal or DirectX. #126
Previous changes from v0.4.0
-
➕ Added
Task::succeed
, which replaces the oldTask::new
. #66- 0️⃣
Default
implementation forui::widget::slider::State
. - 0️⃣
Default
,Clone
,Copy
,PartialEq
, andEq
implementations forui::widget::button::State
. - ➕ Additional color constants:
Color::RED
,Color::GREEN
, andColor::BLUE
. #77 Color::from_rgb_u32
, which allows to constructs aColor
using an hexadecimal literal (0xRRGGBB
). #77From<nalgebra::Matrix3>
andInto<nalgebra::Matrix3>
implementations forTransformation
. #78Game::is_finished
, which allows to gracefully quit the game on demand. #79Canvas::read_pixels
, a method to read the contents of aCanvas
as aDynamicImage
from theimage
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 agraphics::Image
in your user interface. Mesh::new_with_tolerance
, which allows to control the tolerance of line segment approximations. #100Game::cursor_icon
, which allows customization of the mouse cursor icon.
🔄 Changed
Mesh::stroke
now takes anf32
asline_width
instead of au16
.- 👍
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 aVector
. #78- The logic of
KeyboardAndMouse
has been split into the newKeyboard
andMouse
input trackers. The newmouse
andkeyboard
methods can be used to obtain them, respectively. #69 - The
Mouse
type can now track additional input: - The
mesh
example now has a slider to control the tolerance. #100
🛠 Fixed
- Hang when
Game::TICKS_PER_SECOND
is set as0
. #99