Files
MacroLibX/README.md
2023-04-05 01:11:49 +02:00

763 B

MacroLibX

A rewrite of School 42's MiniLibX using SDL2 and Vulkan. The goal of this version is to give a light, fast and modern graphical tool while keeping the same API as the version currently used at 42.

Installation

Linux

  1. Necessary packages :

For Ubuntu/Debian

~ sudo apt update
~ sudo apt install libsdl2-2.0-0 libsdl2-dev build-essential

For Arch based distros

~ sudo pacman -S sdl2
  1. Get MacroLibX
~ git clone https://github.com/420verfl0w/MacroLibX.git
~ cd MacroLibX
~ make
  1. Compile your project

If you didn't disable Xpm support you'll have to link libXpm. You can remove it if you used #define MLX_NO_XPM before including mlx.h

clang myApp.c MacroLibX/libmlx.so -lSDL2 -lXpm