Discover 2D programming and the psychedelic universe of fractals in this project, using minilibX.
First of all, we should take into account that the
mlx_pixel_put
function is very, very slow. This is because it tries to push the pixel instantly to the window (without waiting for the frame to be entirely rendered). Because of this sole reason, we will have to buffer all of our pixels to a image, which we will then push to the window.
- The
minilibx-linux.tgz
has some man pages that are not in the other provided compressed files.
- In order to convert from
man
format topdf
, use commandman -Tpdf man > man.pdf
as suggested here.
- Use command
manpath
to list all the folders whereman
will look for files - Copy the files into one of the folders listed
sudo cp minilibx-linux/man/man3/* /usr/local/man/man3
- Now just type
man mlx
to check the manual
MiniLibX(3) Library Functions Manual MiniLibX(3)
NAME
MiniLibX - Simple X-Window Interface Library for students
SYNOPSYS
#include <mlx.h>
void *
mlx_init ();
DESCRIPTION
MiniLibX is an easy way to create graphical software, without any X-Window programming knowl‐
edge. It provides simple window creation, a drawing tool, image and basic events management.