Skip to content

Releases: codam-coding-college/MLX42

v2.0.3

19 Apr 11:47
Compare
Choose a tag to compare
42MLX_Logo

Version: 2.0.3

This patch introduces just a few bug fixes.

Bug Fixes

  • Fixed missing function definitions in the header for mouse & cursor hook
  • Fixed rendering issue that would cause image_to_window to not change textures.
  • Fixed heap-buffer-overflow when trying to read a xpm42 file.

v2.0.2

06 Apr 02:44
Compare
Choose a tag to compare
42MLX_Logo

Version: 2.0.2

Overall not many changes just a few QOL stuff, a few bug fixes as well as improvements and some nice makefile overhauling by @Eathox, thank you very much!

Feature Summary

  • Add assertions for compile time error checking. (Use make DEBUG=1)
  • Add mouse hook function.
  • Add cursor hook function.
  • Re-visit of the Makefiles.
  • Some more minor internal stuff.

Bug Fixes

  • Fixed a crash when deleting an XPM42 texture object.
  • Fixed a performance issue with rendering.
  • Fixed endian dependent color reading for XPM42

PRs Merged

New Contributors

Full Changelog: V2.0.1...v2.0.2

v2.0.1

16 Mar 11:26
Compare
Choose a tag to compare
42MLX_Logo

Version: 2.0.1

This update introduces a few bug fixes and corrections

On a different note. MLX42 was extensively used at the Codam Hackathon in March and it was viewed with a lot of positivity.
Thank you to everyone who used it and reported their feedback!

Feature Summary

  • Added mlx_set_instance_depth to set the Z value properly.
  • Added batched rendering to improve the performance!
  • Implemented new scripts so that the dependency on python can be removed.
  • Improved the detection of homebrew.
  • Some more stuff I forgot :D

Bug Fixes

  • Fixed a memory leak on image deletion.
  • Fixed mlx_errno to be extern instead.

PRs Merged

  • Proof-of-concept: Batched rendering by @Techdaan in #19
  • Implement batched rendering by @W2Wizard in #21 (Integration of #19)
  • Replace compile_shader script with bash variant by @FreekBes in #18
  • Add generic homebrew path finding option to work with custom homebrew… by @vincentvis in #22

New Contributors

Full Changelog: v2.0.0...V2.0.1

v2.0.0

02 Mar 13:41
Compare
Choose a tag to compare
42MLX_Logo

Version: 2.0.0

This update is a major jump from v1.0.0, as of now MLX42 will no longer follow the norme as explained and mentioned in the announcement #16. Needles to say this makes incompatible API changes.

Feature Summary

  • Added mlx_put_string.
  • Switched to using error codes instead, code won't have to be rewritten, instead you can now get the error if any occured via mlx_strerror and g_mlx_errno instead of having the error directly omitted onto the terminal.
  • Added proper makefile support to windows
  • General improvement in peformance and rendering
  • Improved stability and error handling
  • Re-wrote the implementation of hooks to be more clean
  • Renamed mlx_putpixel to mlx_put_pixel to stay consistent with naming the convention.
  • Improved documentation for the internal header
  • Some more stuff I forgot :D

Bug Fixes

  • Fixed a bug in the XPM3 -> XPM42 converter, sometimes some text values would not convert correctly.
  • Fixed an issue in the python script shader converter.
  • Fixed a bug that would cause the application to crash when minimizing the window on Windows.
  • Fixed a bug where mlx_get_monitor_size would not return 0 if it did not find a monitor.
  • Fixed an issue where deletion of an image would cause a segfault.

v1.0.0

21 Feb 10:40
Compare
Choose a tag to compare
42MLX_Logo

Initial release 🎉

After a more than a month of work into this project I can proudly say that it is ready to be used for any kind of project in a stable condition. Hope there are no bugs that I have not heard of :D

Feature Summary

  • Fully norme (except the libraries used)
  • Covers almost all features compared to the original MiniLibX.
  • Useful image manipulation functions.
  • Stable, leak free PNG importing via lodepng.
  • XPM42 Support with added converter (XPM3 -> XPM42).
  • Improved performance.
  • Built-In support for keycodes and simple key detection.
  • Window resizability, callback detection & ability to resize images.
  • Fully Cross-platform (MacOS, Windows & Linux)
  • Automatic window focus on startup
  • No Leaks, compiles with -fsanitize=address

Todo

  • String to window
  • Some additional callbacks
  • Improve performance
  • Revise error handling with error codes instead