Skip to content

Commit 157d39f

Browse files
committed
Add more context to some book 2 code listings
1 parent bd387e8 commit 157d39f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

books/RayTracingTheNextWeek.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,9 @@
686686
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ highlight
687687
#include "aabb.h"
688688
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
689+
690+
class material;
691+
689692
...
690693

691694
class hittable {
@@ -1186,6 +1189,10 @@
11861189
public:
11871190
...
11881191

1192+
bool hit(const ray& r, interval ray_t) const {
1193+
...
1194+
}
1195+
11891196

11901197
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ highlight
11911198
int longest_axis() const {
@@ -1372,6 +1379,8 @@
13721379
#include "texture.h"
13731380
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
13741381

1382+
class hit_record;
1383+
13751384
...
13761385

13771386
class lambertian : public material {

0 commit comments

Comments
 (0)