Skip to content

Commit

Permalink
Added code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
aviallon authored Dec 15, 2017
1 parent 63e8813 commit b815887
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ This is a Raytracing made from scratch in C++, using a C++ wrapper of Allegro I


# How to build :
Compile using : -std=c++11 -lpthread;allegro;allegro_image;allegro_primitives;allegro_memfile;allegro_ttf;allegro_font
-Wl,--format=binary -Wl,arial.ttf -Wl,--format=default
Compile using :
```bash
-std=c++11 -lpthread;allegro;allegro_image;allegro_primitives;allegro_memfile;allegro_ttf;allegro_font -Wl,--format=binary -Wl,arial.ttf -Wl,--format=default
```

The last line is required to include the arial.ttf file __inside__ the executable, at link time. This avoids having to share your program and the font file as two separate files.
The last line is required to include the arial.ttf file _inside_ the executable, at link time. This avoids having to share your program and the font file as two separate files.

The optimisation level -O2 is highly recommended as it's 5 times as performant as lesser ones. Also -O3 and higher causes weird shadows glitches I didn't identify yet.
The optimisation level `-O2` is highly recommended as it's 5 times as performant as lesser ones. Also `-O3` and higher causes weird shadows glitches I didn't identify yet.

0 comments on commit b815887

Please sign in to comment.