Releases: codam-coding-college/MLX42
v2.4.1
v2.4.0
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!
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.
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!
What's Changed
Full Changelog: v2.3.4...v2.4.0
v2.3.4
Version: 2.3.4
Small fixes in the documentation and bumping down the CMake Version.
What's Changed
- Fix typo by @552020 in #126
- added a line in the Mac installation for apple silicon by @multitudes in #123
- Modify Readme code example by @pulgamecanica in #127
- CMakeList minimal CMake version downgrade to support Ubuntu out of the box by @atuuuu in #138
New Contributors
- @552020 made their first contribution in #126
- @multitudes made their first contribution in #123
- @pulgamecanica made their first contribution in #127
- @atuuuu made their first contribution in #138
Full Changelog: v2.3.3...v2.3.4
v2.3.3
Version: 2.3.3
More fixes overall mainly coming from the community, thanks to all that contributed 🥳
Changes
- Removed GLFW leaks by @XEDGit in #112
- Update README.md by @42ajakob in #114
- fix typos by @kaboussi in #115
- Adding Le Havre campus by @makseem77 in #120
- Update Colors.md by @bcheronn in #121
- Update berlin campus status by @ickfunk in #122
New Contributors
- @XEDGit made their first contribution in #112
- @42ajakob made their first contribution in #114
- @kaboussi made their first contribution in #115
- @makseem77 made their first contribution in #120
- @bcheronn made their first contribution in #121
- @ickfunk made their first contribution in #122
Full Changelog: v2.3.2...v2.3.3
v2.3.2
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
- Resolve #109
- Resolve #107
- Add
mlx_destroy_cursor
- Fixed Windows build & added to CI
- Implement an image scaling function. by @IcaroJam in #98
- Fix for compilation error on Linux by @andreasmaucher in #104
- Fixed some typos again by @Jeroenvh99 in #106
New Contributors
- @IcaroJam made their first contribution in #98
- @andreasmaucher made their first contribution in #104
Full Changelog: v2.3.1...v2.3.2
v2.3.1
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
- Cmake doesn't override glfw_FOUND when set manually + README update by @Lacusch in #84 #86
- Add frameworks for macOS by @JellevanKraaij in #87
- Change testing framework to CMake by @JellevanKraaij in #90
- Fix build error shaders resolve #91 by @JellevanKraaij in #92
New Contributors
Full Changelog: v2.3.0...v2.3.1
v2.3.0
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
What's Changed
- Fixed a lot typos by @Jeroenvh99 in #71, #73, #74, #75, #77
- Rework build system & refactor code for 2.3.0 by @W2Wizard in #70
- Fix order of README and code example by @JellevanKraaij in #79, #80 and #81.
Full Changelog: v2.2.1...v2.3.0
v2.2.1
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
andlodepng
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
- @Tishj made their first contribution in #48
- @VNNCC made their first contribution in #51
- @execrate0 made their first contribution in #56
- @JellevanKraaij made their first contribution in #57
- @senolem made their first contribution in #60
- @ugoi made their first contribution in #64
- @Jeroenvh99 made their first contribution in #63
Full Changelog: v2.2.0...v2.2.1
v2.2.0
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
- @joppiesaus made their first contribution in #37
- @xvoorvaa made their first contribution in #39
- @MyNameIsTrez made their first contribution in #43
Full Changelog: v2.1.0...v2.2.0
v2.1.0
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 fromint32_t
touint32_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
Full Changelog: v2.0.3...v2.1.0