Tetra v0.6.6 Release Notes
Release Date: 2021-10-10 // about 2 years ago-
โ Added
window::set_icon
has been added, allowing for the window's icon to be changed at runtime.- In general, it's preferable to set the icons via your application's packaging - this function should only be used if the icon needs to change at runtime, or if you're feeling lazy and don't feel like setting up proper packaging.
- Various utility functions have been added to the
window
module, allowing for control over window positioning and size. (@Tairesh in #278) - An example of using ECS libraries with Tetra has been added. (@rghartmann in #268)
- A
KeyLabel
type has been added, which represents how keys are labelled in the current keyboard layout. input::get_key_with_label
andinput::get_key_label
have been added, so that keys can be mapped to and from the current system keyboard layout.
๐ Changed
- ๐
Key
now represents the physical position of a key, rather than how it is labelled. This allows for non-QWERTY keyboard layouts to be supported without extra work on the developer's part. KeyModifier
now implementsDisplay
.- The
ContextBuilder::key_repeat
setting now applies to the input polling APIs as well as events. (@Tairesh in #279)- This is in order to make the API more consistent - now, whenever there is an
Event::KeyPressed
, it is guarenteed to also be returned viais_key_pressed
andget_keys_pressed
. - The behaviour with
key_repeat
turned off is unchanged.
- This is in order to make the API more consistent - now, whenever there is an
- โก๏ธ Updated
glow
to 0.11.
๐ Fixed
- ๐ Fixed an issue where the blend mode was getting set on the GPU even when it hadn't changed.