Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 686 Bytes

README.md

File metadata and controls

31 lines (25 loc) · 686 Bytes

FDF

FDF is a simple line rasterizer that turns a rectangular map of height values into a wireframe render.

The code is written in accordance to the 42 School Norm.

Build

make

Usage

> cat map.txt
0 0 0
0 1 0
0 0 0

> fdf ./map.txt

Input

  • Left Mouse : Translate while pressed
  • Right Mouse : Rotate along Y-axis while pressed
  • Middle Mouse : Zoom while pressed
  • P Key : Switch between orthographic and perspective