Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

The C++20 Windows Compatible Release

Choose a tag to compare

@sebjameswml sebjameswml released this 02 Apr 15:55
· 44 commits to main since this release
2e25e21

Summary

This release makes several major changes warranting the increment of the major version number to 4. morphologica now requires your compiler to support C++20, allowing our use several nice features such as the requires keyword. It switches GL header inclusion over to GLAD (https://github.com/Dav1dde/glad) which makes it possible to support Microsoft Windows as a build platform. This was an involved process and prompted the re-design of the morph::Visual/morph::VisualModel classes to support both multi-context safe GL and single context GL. It adds constexpr-capable maths functions while we await C++26 support/adoption. It includes some maths improvements in morph:vvec, morph::histo, morph::scale and morph::range and some vis improvements in morph::GraphVisual, notably a 'line crossing' feature:

Screenshot a line graph showing the new line crossing feature

The API has some breaking changes: the struct morph::unicode becomes a namespace (which may require client code changes if you are using morph::unicode). Lastly, if you are querying Visual::readyToFinish you will now need to query with a function call Visual::readyToFinish(). One or two other bool parameters have also changed (e.g. Visual::showCoordArrows).

Special thanks to @rremilian who made massive improvements to the CI actions, these have really improved the development process.

What's Changed

New Contributors

Full Changelog: v3.4.4...v4.0