Skip to content

Discover 2D programming and the psychedelic universe of fractals in this project, using minilibX.

Notifications You must be signed in to change notification settings

pvaladares/42cursus-02-fract-ol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42cursus-02-fract-ol

Discover 2D programming and the psychedelic universe of fractals in this project, using minilibX.

MLX

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.

Tips

  • The minilibx-linux.tgz has some man pages that are not in the other provided compressed files.

Converting from man to pdf

  • In order to convert from man format to pdf, use command man -Tpdf man > man.pdf as suggested here.

Installing permanently the mlx man pages

  • Use command manpath to list all the folders where man 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.

Resources