Minilibx - sarahmss/Cub3d GitHub Wiki
Install
sudo apt-get update && sudo apt-get install xorg libxext-dev zlib1g-dev
sudo apt-get install -y libxext-dev && sudo apt-get install -y libxrandr-dev && sudo apt-get install -y libx11-dev && sudo apt-get install -y libbsd-dev && sudo apt-get install -y libssl-dev
cd /usr/local/man/ && sudo mkdir man1
cd ~ && git clone https://github.com/42Paris/minilibx-linux.git && cd minilibx-linux && make
sudo cp man/man1/* /usr/local/man/man1/ && sudo cp libmlx.a /usr/local/lib/ && sudo cp mlx.h /usr/local/include/
Xlib11: can draw simple solids, receive events, write text in various fonts, and also do primitive interprocess communication. Most Xlib programs are event-based. That means they just wait for something to happen and acts upon that then return to wait for another event.
Minilibx functions
it is an easy way to create graphical software allowing us to create simple windows, draw stuff, handle images and manage events.
MLX | Definition |
---|---|
mlx_init | |
mlx_new_window | |
mlx_pixel_put | |
mlx_new_image | |
mlx_loop |