This is a Raytracing made from scratch in C++, using a C++ wrapper of Allegro I did.
Find a file
Antoine Viallon 4bc35f3856 Revert "Test git : tuto pour Guillaume"
This reverts commit b0384d6bd7.
2018-05-07 15:23:33 +02:00
allegro@d58c7bea70 updated AllegroWrapper 2018-02-06 17:42:43 +01:00
.gitignore Initial commit 2017-12-15 19:32:31 +01:00
.gitmodules Removed duplicated AllegroWrapper 2018-01-28 23:20:33 +01:00
LICENSE Initial commit 2017-12-15 19:32:31 +01:00
main.cpp Displays current speed (in days per seconds) 2018-02-03 16:52:54 +01:00
raytracer.h Displays current speed (in days per seconds) 2018-02-03 16:52:54 +01:00
RaytracingAllegro.project Added smoothly working refraction, added multi-lighting. Bam. 2018-02-01 20:46:07 +01:00
README.md Updated erroneous README.md 2018-02-01 20:49:48 +01:00

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;allegro_dialog -Wl,--format=binary -Wl,allegro/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 -O3 is highly recommended as it's 5 times as performant as lesser ones.