From b81588731fcfa510a9b16b627673e43efb5492eb Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Fri, 15 Dec 2017 20:30:32 +0100 Subject: [PATCH] Added code formatting --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6a65faf..3b1b5b8 100644 --- a/README.md +++ b/README.md @@ -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.