Commit Graph

80 Commits

Author SHA1 Message Date
Manoël Trapier
5198888df6 Doh 2020-02-20 16:49:02 +00:00
Godzil
10ae695f01 Trying to fixing some weird things about coverall, also add some real more coverage. 2020-02-20 16:47:00 +00:00
Godzil
d4fae2dbe2 Revert the canvas size to the one from the chapter 2020-02-20 16:20:20 +00:00
Godzil
daef0c078f Revert the canvas size to the one from the chapter 2020-02-20 16:13:58 +00:00
Godzil
a477b137e7 Add a super special Camera from a well known constructor. Can take picture up to Infinite TeraPixel! Chapter07 2020-02-20 16:08:47 +00:00
Godzil
ba1ae34855 Canvas: use Tuple instead of Colour for put Pixel, add two constructor that may be usefull in the future. 2020-02-20 16:07:39 +00:00
Godzil
bc047cd89e Add viewTransform transformation 2020-02-20 15:11:40 +00:00
Godzil
863bb2a34b Name consistency 2020-02-20 14:48:11 +00:00
Godzil
14c3044acf Cosmetics 2020-02-20 13:27:12 +00:00
Godzil
4b4d2b7819 Wow travis detected (by luck?) that uninitialised variable where one test failed in one specific configuration but no other one..
And thanks valgrind to give me a hint!
2020-02-20 02:01:35 +00:00
Godzil
9e1f448e0f testS.... 2020-02-20 01:53:28 +00:00
Godzil
457f5d04e4 Also run the unit test directly. 2020-02-20 01:49:37 +00:00
Godzil
999419dfe1 World is on the verge of working! 2020-02-20 01:41:53 +00:00
Godzil
be6b472472 Simplify hit search as now the list is ordered. 2020-02-20 01:40:50 +00:00
Godzil
aa078f4d46 Fix in world. 2020-02-20 00:47:02 +00:00
Godzil
dbaa6eea2c Fix Intersect and add sort the list each time we add something to it. 2020-02-20 00:46:19 +00:00
Godzil
a82b67faa4 Working on worlds.
It's currently crashing.
2020-02-19 18:05:48 +00:00
Godzil
efe46e2864 Fix function prototype 2020-02-19 15:45:19 +00:00
Godzil
60d639f3a7 Start working on world (domination) 2020-02-18 17:31:21 +00:00
Godzil
ddaefafa1a Don't fully understand coveralls behaviour. Let's try building with gcc to see it is works better. 2020-02-18 12:24:05 +00:00
Godzil
9f764018d3 Add a couple of test for code that wasn't tested before. 2020-02-18 12:20:40 +00:00
Godzil
6200e5ed56 It generally works better when we build before trying to run..... 2020-02-18 12:10:38 +00:00
Godzil
be245523c9 This should be the proper way. 2020-02-18 12:07:37 +00:00
Godzil
11a00a6e74 Testing travis job feature. 2020-02-18 11:50:32 +00:00
Godzil
af96d52c5a Renaming Object to Shape (part 2) 2020-02-18 11:43:05 +00:00
Godzil
5a4f9f4dc4 Renaming Object to Shape (part 1) 2020-02-18 11:40:55 +00:00
Godzil
df4ec9794a Update travis badge 2020-02-17 23:47:08 +00:00
Godzil
db9f2c0203 Do I really know SH script? I wonder sometimes 😣 2020-02-17 23:33:48 +00:00
Godzil
88fcd48481 This test wasn't support to be there at first. 2020-02-17 23:29:50 +00:00
Godzil
5e295c06b2 Seems that coveralls don't like the OS X build, so let's only push when build from linux 2020-02-17 23:28:38 +00:00
Godzil
4dd7a3af39 Add Chapter 5 and 6 executable to the test list 2020-02-17 23:22:05 +00:00
Godzil
1aab8f6619 Remove the test 🤨 2020-02-17 23:21:28 +00:00
Godzil
27ec4d5567 Trying to find which version of gcov is installed on travis-ci. 2020-02-17 23:13:09 +00:00
Godzil
a64b1288a5 Trying to make travis having the proper gcov version. 2020-02-17 23:06:02 +00:00
Godzil
77907499a4 Rework a bit the base Cmakelist to make it clearer. 2020-02-17 23:05:37 +00:00
Godzil
cf00e62c5a Update coverall script to use my fork that properly support AppleClang. 2020-02-17 23:05:08 +00:00
Godzil
5086a5c82f Use file/glob instead of set to add source files 2020-02-17 23:02:38 +00:00
Godzil
b84ed7496b Trying to make gcov/coveralls to work... 2020-02-17 22:32:33 +00:00
Godzil
b4bd8bd4b7 CoverallS... 2020-02-17 22:19:10 +00:00
Godzil
c1e7496d21 Fix a glib problem on some distros. 2020-02-17 22:18:59 +00:00
Godzil
674831b370 Travis don't like tabs! (he is right :)) 2020-02-17 22:09:31 +00:00
Godzil
8cc2272b50 Add a really really light readme. 2020-02-17 22:04:00 +00:00
Godzil
2e2d8c143c Add travis, coverall and other things. 2020-02-17 21:56:59 +00:00
Godzil
a8ca88640b Add GPLv2 strict license 2020-02-17 21:28:55 +00:00
Godzil
9bdfb26f7e Add Chapter 06 test! 2020-02-17 19:15:58 +00:00
Godzil
5ebed12f4f Add support for point light and materials.
Add material to objects.
Chapter06
2020-02-17 19:12:57 +00:00
Godzil
73d60fb7e4 Fix a copy mistake. 2020-02-17 19:09:31 +00:00
Godzil
4a9379c0b2 Naming consistency 2020-02-17 17:57:55 +00:00
Godzil
aeb4669162 Add vector reflection via a normal vector. 2020-02-17 15:56:08 +00:00
Godzil
a8194169c5 Add function to calculate sphere normal vector on given point on the sphere. 2020-02-17 15:39:14 +00:00