You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.6.7 states "All main program files will include rtweekend.h first, so most other header files (where the bulk of our code will reside) can assume these definitions are already available."
I read that as: main.cc includes it up top, so we don't have to include it elsewhere. However, the source code is inconsistent with that premise, but the source code is also inconsistent with itself. Just looking at the other files mentioned in section 1.6.7 as needing changes:
color.h, sphere.h, vec3.h in the src folder do NOT include rtweekend.h
hittable.h, hittable_list.h in the src folder DO include rtweekend.h
Additionally, camera.h and material.h, which are introduced later, both include rtweekend.h in both the book and the src folder.
This effects of this carry over to the other books.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
1.6.7 states "All main program files will include rtweekend.h first, so most other header files (where the bulk of our code will reside) can assume these definitions are already available."
I read that as:
main.cc
includes it up top, so we don't have to include it elsewhere. However, the source code is inconsistent with that premise, but the source code is also inconsistent with itself. Just looking at the other files mentioned in section 1.6.7 as needing changes:color.h
,sphere.h
,vec3.h
in thesrc
folder do NOT includertweekend.h
hittable.h
,hittable_list.h
in thesrc
folder DO includertweekend.h
Additionally,
camera.h
andmaterial.h
, which are introduced later, both includertweekend.h
in both the book and thesrc
folder.This effects of this carry over to the other books.
The text was updated successfully, but these errors were encountered: