crumblingstatue
released this
24 Oct 17:21
·
12 commits
to master
since this release
Added
- Add
cpp::CppString
andcpp::CppVector
to deal with C++ strings and vectors returned by SFML - Add provided method
Shape::points
to get an iterator over the points of a shape - Add
From<T> for Vector2<T>
. This allows things likemy_sprite.set_scale(2.0)
,
to scale to2.0
in both axes. - Add
Image::new_solid
to create an image filled with a solid color - Add
Font::new
to create an empty font - Add
Window::new
to create a closed window - Add
RenderTexture::recreate
to recreate aRenderTexture
with new settings
Changed
- Rust requirement increased to 1.82
- Rename
SfBox
toFBox
to emphasize the fact it doesn't only deal with SFML objects, but
multiple kinds of foreign objects. (F stands for "foreign") - All methods on
system::Time
are nowconst fn
- Rename
Transform::get_matrix
toTransform::matrix
- Make
Transform::{new, matrix, inverse}
const fn
Image::new
now creates an empty image. SeeImage::new_solid
- Old
Window::new
is nowWindow::new_open
SoundRecorder
now requiresSend
- Make
RcFont::texture
returnRef
rather than "leak" a borrow - Make all fields on
RenderStates
public Texture::upate_from_pixels
is now a safe, checked function
Fixed
- Fix building on Mac OS X
- Fix
Music::from_memory
having unbounded lifetime on the memory
Removed
ConvexShape::points
in favor ofShape::points
RenderStates::{new, set_texture, set_shader}
in favor of public fields
Documentation and examples
- Remove awkward
example_res!
macro from examples in favor of calling
example_ensure_right_working_dir()
at the beginning of main. - Improve some examples, showcase more API usages in them
- Leverage "scrape examples" functionality of rustdoc in docs.rs generated documentation
- Add "positional audio" example
Internal improvements
- Added continuous integration for Windows MSVC, and Mac OS X