Releases: Enet4/dos-like-rs
Releases · Enet4/dos-like-rs
v0.4.0
v0.3.1
Fixes and Enhancements
- Fix compilation under MacOS (#7 @jorisvddonk)
- Minor documentation improvements (#8)
Full Changelog: 0.3.0...v0.3.1
0.3.0
What's Changed
swap_buffers
was changed to no longer return a slice, so that it can be used withoutunsafe
. For the function which also returns a slice, seeswap_buffers_and_get
. (#6)- Changed pixel coordinates to use
i32
instead ofu16
. This also fixesdraw_poly
andfill_poly
, which never really worked. (#5) - Fixed mouse functions to use
i32
instead ofu16
. (#3 @Kapouett)
Full Changelog: 0.2.3...0.3.0
0.2.3
Fixes
- Added null pointer checks in
create_sound
, as passing invalid parameters returns a null pointer and attempting to use theSound
value could lead to undefined behavior. Instead, this function panics.try_create_sound
was added, which returns anOption<_>
instead.
Enhancements
- Memory layout of resource types
Sound
,Music
andImage
were changed to take advantage of the fact that the raw pointer is never null.
Full Changelog: 0.2.2...0.2.3
0.2.2
Fixes
- Added null pointer checks in
Music::create_mus
. Attempting to use aMusic
value with a null pointer could lead to undefined behavior. Instead, this function panics if it could not load the music data from the slice. - Added
Music::try_create_mus
which does the same as above, but returns anOption<Music>
instead (None
if it could not load).
Enhancements
- [dos-like-sys] Update
dos-like
revision froma676ea74
to2bceb960
(2022-03-07).
Chores
- Updated CI linux jobs to update packages before installing SDL2 and libGLEW (#1)
Full Changelog: 0.2.1...0.2.2
0.2.1
0.2.0
New
- All functions from the native
dos-like
API have now been covered in the high level crate!- Implementations were categorized in the following modules:
video
input
,sound
, andmusic
.
- Implementations were categorized in the following modules:
Fixes and Enhancements
- Significantly improved documentation.
- Build script was tweaked to work on Windows.
- Mac OS is untested; WebAssembly is not yet supported.
- Reduced package size of
dos-like-sys
by excluding unneeded contents.
Full Changelog: 0.1.0...0.2.0