Skip to content

Commit

Permalink
Updated README file
Browse files Browse the repository at this point in the history
  • Loading branch information
aviallon committed Dec 15, 2017
1 parent 0e597e5 commit 63e8813
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
# Raytracing
This is a Raytracing made from scratch in C++, using a C++ wrapper of Allegro I did.


# 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

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.

0 comments on commit 63e8813

Please sign in to comment.