Files
MacroLibX/README.md
2023-10-19 21:21:33 +02:00

1.5 KiB

MacroLibX

linux clang workflow linux gcc workflow macos workflow

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

Dependances :

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

MacOS

Dependances :

Get MacroLibX

~ git clone https://github.com/420verfl0w/MacroLibX.git
~ cd MacroLibX
~ make

Compile your project

clang myApp.c MacroLibX/libmlx.so -lSDL2

/!\ If you run into glitches when writing or reading pixels from images /!\

You need to add IMAGES_OPTIMIZED=false to your make mlx command

~ git clone https://github.com/420verfl0w/MacroLibX.git
~ cd MacroLibX
~ make IMAGES_OPTIMIZED=false