Skip to content

Releases: codam-coding-college/MLX42

v2.4.1

21 Oct 17:31
7f95e70
Compare
Choose a tag to compare
42MLX_Logo

Version: 2.4.1

Small bug fix that would cause problems on MacOS Catalina.

Bug fixes

  • Fix: #143 - Add missing GLFW_OPENGL_CORE_PROFILE hint.

Full Changelog: v2.4.0...v2.4.1

v2.4.0

16 Oct 12:24
b8a3231
Compare
Choose a tag to compare
42MLX_Logo

Version: 2.4.0

MLX42 now allows you to compile it to WASM with emscripten.
What this means is you can create your small game in C and run it on the web / host it on github pages!


image

Demos

@PepeLevi implemented a forked version of MLX42 which allowed them to compile it to WASM. This release is based on their work so a special thank you for doing the research and implementation for this.

You can play the game here.
image

Here you have Telestein3D by @fvan-wij. I asked him for some help regarding the implementation details. He found it too complicated to present his cub3d project to others. Now anyone can enjoys his Cub3d!

image

What's Changed

Full Changelog: v2.3.4...v2.4.0

v2.3.4

10 Jun 12:28
26fdbd9
Compare
Choose a tag to compare
42MLX_Logo

Version: 2.3.4

Small fixes in the documentation and bumping down the CMake Version.

What's Changed

New Contributors

Full Changelog: v2.3.3...v2.3.4

v2.3.3

17 Dec 10:32
154e0c3
Compare
Choose a tag to compare
42MLX_Logo

Version: 2.3.3

More fixes overall mainly coming from the community, thanks to all that contributed 🥳

Changes

New Contributors

Full Changelog: v2.3.2...v2.3.3

v2.3.2

02 Jun 08:36
Compare
Choose a tag to compare
42MLX_Logo

Version: 2.3.2

Minor fixes including the build issue for windows, ability to delete cursor objects and the image scaling function actually scaling the content of the image.

Changes

New Contributors

Full Changelog: v2.3.1...v2.3.2

v2.3.1

20 Mar 19:40
5b507ab
Compare
Choose a tag to compare
42MLX_Logo

Version: 2.3.1

Minor patch to fix some bugs, small things regarding CMake as well switching to Google's ctest framework instead.

Changes

  • Fixed a bug that would cause the shader converter to fail if the previous directory had a space in the name.
  • Fixed a bug that caused a segfault when setting the application Icon.
  • CMake will now be able to detect 42 Homebrew installations of GLFW automatically.
  • Switched to Google's CTest for unit testing.

Todo's & issues

  • Currently windows fails to build due to: error C2078: too many initializers.
  • Windows CI currently does not exist.
  • Need to introduce more test cases, ideally test every function if possible.

PR's Merged

New Contributors

Full Changelog: v2.3.0...v2.3.1

v2.3.0

08 Feb 08:21
bf5dd70
Compare
Choose a tag to compare
42MLX_Logo

Version: 2.3.0

Warning: Be aware that this version will be a breaking change due to the change in the way the library is now compiled. However it is super simple to fix, please read the README before creating issues!

MLX42 now uses CMake instead of traditional makefiles making it actually independent in terms of where it can build!
This might seem like a drastic change however it is not, it only requires an additional dependency: CMake which is a very popular and industry standard build system.

In regards to 42 this should be available to the computers anyway as it is commonly used for the specialisation projects.

The reason for this change is to make compilation on different system as easy as possible. With traditional makefiles we had to take into account the location of certain libraries, Homebrew and all other sorts of things. Not to mention for some it didn't really work as intended.

Feature Summary

  • Now uses CMake to be able to perfectly compile cross-platform
  • Proper unit tests and CI (with the exception of Windows)
  • Resolve a lot of typos in the documentation.

Bug fix

  • Fixed a segfault when creating a custom cursor: #72
  • Fixed issue #58

What's Changed

Full Changelog: v2.2.1...v2.3.0

v2.2.1

01 Dec 21:23
7c7b119
Compare
Choose a tag to compare
42MLX_Logo

Version: 2.2.1

Its been a while and I have just enough to push out a minor update. This version includes several documentation fixes as well as some minor bugfixes.

Bugfix

  • Fixed a memory leak due to incorrect freeing of XPM textures.
  • Fixed Typos in docs.
  • Set the correct errno when mlx_texture_to_image fails.

Feature Summary

  • Switched from int to double for mlx_get_time.
  • Added test cases to check if the functionality still persists.
  • Updated GLAD and lodepng to latest.

What's Changed

  • Added WSL set up steps by @Tishj in #48
  • Improve README by @VNNCC in #51
  • Make-it-pretty.mk dude. by @SwenneHacks in #42
  • Fix linking error in makefile docs by @execrate0 in #56
  • Fix readme example code compiler warning by @JellevanKraaij in #57
  • fixed xpm deallocation and switched from int to double for mlx_get_time (more precision) by @senolem in #60
  • Update Basics.md by @ugoi in #64
  • Code cleanup and fixed some typos by @Jeroenvh99 in #63
  • Make a more descriptive functionname and reformulate some documentation by @Jeroenvh99 in #68

New Contributors

Full Changelog: v2.2.0...v2.2.1

v2.2.0

02 Aug 19:58
Compare
Choose a tag to compare
42MLX_Logo

Version: 2.2.0

It's been a while but it's time for another update in which we finally tackled the annoying issue of images not showing up after a while.
There are also some nice new features such as unit testing, functions and markdown pages for improved documentation. The community is more than welcome to contribute to it!

Bugfix

  • Fixed a bug where instances would disappear when calling mlx_image_to_window too many times.
  • Fixed a segfault due to mlx_lstadd_front not handling double linked lists correctly.

Feature Summary

  • Added mlx_set_window_title.
  • Added mlx_create_std_cursor.
  • Added the ability to show and hide instances.
  • Added markdown pages to explain how to use the library.
  • Added unit testing mainly for CI but also for general testing. (WIP)
  • Redid all the assertions to also display a message as to why it was triggered.
  • Improved performance thanks to PRs.

PR's merged

  • Fix compile on Linux by @joppiesaus in #37
  • Automatically recompile when a header file changes by @joppiesaus in #38
  • Fix assertion for indexing by @xvoorvaa in #39
  • Added glfwWindowHint() that was deleted last commit by @xvoorvaa in #40
  • Optimize and fix recursion crash by @MyNameIsTrez in #43
  • Back to using faster mlx_lstadd_front by @MyNameIsTrez in #44

New Contributors

Full Changelog: v2.1.0...v2.2.0

v2.1.0

12 Jun 14:23
252d6e4
Compare
Choose a tag to compare
42MLX_Logo

Version: 2.1.0

In this update you finally have access to the font texture itself. This will allow you to work with the font directly and create any functions that might need it. Additionally the setting 'system' set up before has been replaced with with mlx_set_setting. You can find the settings in the header.

Bugfix

  • Fix segfault when deleting an image
  • Fix memory leak at mlx_terminate

Feature Summary

  • Add mlx_get_texoffset
  • Add mlx_get_font
  • Add mlx_set_setting
  • Change X & Y position param from int32_t to uint32_t

PR's merged

  • [Bug Fix] Segfaults/UB when deleting images with 2 or more instances by @pajotg in #30
  • Update README.md by @hydrasho in #32

New Contributors

  • @pajotg made their first contribution in #30
  • @hydrasho made their first contribution in #32

Full Changelog: v2.0.3...v2.1.0