Skip to content

The MacroLibX

Rewritten version of the minilibx graphics API used at 42school, using SDL2 & Vulkan.

The MacroLibX is a fast, easy to use, cross-platform graphics library to create applications without having to work directly with low level graphics APIs. It provides a simple window management and primitive tools for drawing onto the window such as displaying images from disk or drawing pixels directly.

Lightning fast

Built on top of Vulkan, the MacroLibX takes advantage of its very low-level nature to achieve high performance with great control over available resources.

Strong error management

Includes a powerful, partially deactivatable, error system informing the user of problems with its code and graphic memory leaks that tools such as Valgrind are unable to detect.

It's all FOSS

Everything in the MacroLibX is entirely free and open source, all available under the MIT license (even the third-party libraries used).

Cross-platform

Designed to be totally cross-platform, it can run on any SDL2-supported platform that supports Vulkan (even the Nintendo Switch ! theoretically… ).

Here you can access the legacy (v1.3.3) documentation.

Brought to you by

The best coalition of all the 42 campuses in the world and if you don’t agree that’s your problem