Tetra v0.6.3 Release Notes
Release Date: 2021-04-09 // about 3 years ago-
โ Added
- ๐ BMFont-formatted fonts are now supported, via
Font::bmfont
andBmFontBuilder
. - Various
std
operator traits have been implemented for the combination ofColor
andf32
, allowing for all four components to be operated on at once.- This can be especially useful when working with premultiplied alpha - to set the opacity of a opaque color, you can now just multiply it by an
f32
.
- This can be especially useful when working with premultiplied alpha - to set the opacity of a opaque color, you can now just multiply it by an
Color
now has ato_premultiplied
method, which can be used to convert a color into its premultiplied version.Color
can now be converted to and from[f32; 4]
and[u8; 4]
viaFrom
andInto
.- The
ImageData
struct can be used to load and manipulate image data on the CPU, without the need for aContext
.- This can be useful for asset loading/pre-processing.
- To avoid future breaking changes if/when Tetra gains support for multiple pixel formats, the API doesn't currently give access to the underlying raw pixel data. It instead operates purely on
Color
s, automatically converting to and from as needed.
- 0๏ธโฃ
Color
andVertex
now implementDefault
, with the default values being all zeroes (for consistency with the vector types, and to make them more useful for zeroing out buffers).
๐ Changed
- ๐ Improved docs for the
UniformValue
trait.
- ๐ BMFont-formatted fonts are now supported, via