MiniLibX

Basic introduction, tutorials, tips & tricks.


Project maintained by Gontjarow Hosted on GitHub Pages — Theme by mattgraham

What is it?

A small library which implements some basic functions that allow you to quickly open a window and to draw within it.

More specifically, it’s an abstraction of the “X Window System” for Unix platforms.

Recommended watching: “Introduction to MinilibX” and “Introduction to events” on the school intra.

What is this?

This is an introductory set of information to get any 42 students started with graphics programming. The manual pages are quite vague, so I want to provide a little kickstart to anyone who finds this page.

These won’t be perfect tutorials, though. The code provided here will be clean to read (as far as the important parts go), but it will not conform to Norminette. The algorithms/solutions given here won’t always be optimal, but “correct enough” to get anybody started enjoying graphics programming.

There’s also no guarantee that the information provided here is 100% correct. I make mistakes too.

It is still your job to think about the problems and improve from your starting point.

Manual pages

Tutorials (WIP)

  1. How to create a window
  2. How to draw a pixel on the screen
  3. How to draw a line
  4. How to draw a box or square (placeholder)
  5. How to draw a circle or oval (placeholder)
  6. How to register event handlers
  7. How to use event param
  8. How to create an image (long)

Supplementary project-material

FdF, wireframe

Video: Isometric coordinates

Video: Triangle rasterization (rendering) explained

Practical example: Triangle fill/rasterization

Fractals

Video: Introduction to Mandelbrot, math explained

Video: Mandelbrot behavior visualized

Practical example 1: Mandelbrot/Julia

Practical example 2: Mandelbrot/Julia