riley-harper / RayTracer

Code for a raytracer that I built in spring 2021, along with example images!
0 stars 0 forks source link

Simplify Parser with Two New Functions #47

Closed riley-harper closed 3 years ago

riley-harper commented 3 years ago

Closes #44.

Use NextTokenAsFloat() and NextTokenAsInt() to remove a lot of the error checking needed during parsing (it's now in those functions, so we don't have to repeat it every time).