Kwasniok / cpp-raytracing

non-linear raytraycing based on "Raytracing in One Weekend"
2 stars 0 forks source link

make io an interface #9

Open Kwasniok opened 2 years ago

Kwasniok commented 2 years ago

Let all data types which support IO inherit from a new abstract IO interface supporting write and read(parse_node).

PRO:

The current sate is inconclusive.

Kwasniok commented 2 years ago

revised approach:

Use template function for read and write (similar to operator<< & operator>>).