diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-03-09 21:49:43 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-03-09 21:49:43 +0800 |
| commit | 7aa2a67d8381c9a88d69a3f53d74a7f079214263 (patch) | |
| tree | de149b622a960ffc42bfce1d6a37a81ea3a493a2 /color.cc | |
| parent | 2a65ece16cd237d56c9dac8d9d3d680e9d34b774 (diff) | |
| download | ray-tracing-7aa2a67d8381c9a88d69a3f53d74a7f079214263.tar.gz ray-tracing-7aa2a67d8381c9a88d69a3f53d74a7f079214263.tar.xz | |
Establish a well-structured modern C++ project architecture
Focus on code quality: Treat strict warnings as errors, memory checks with Sanitizers, Clang formatting and static analysis
Performance optimization: LTO, ccache
Diffstat (limited to 'color.cc')
| -rw-r--r-- | color.cc | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/color.cc b/color.cc deleted file mode 100644 index c1eac72..0000000 --- a/color.cc +++ /dev/null @@ -1,15 +0,0 @@ -#include "color.h" - -void write_color(std::ostream &out, const color &pixel_color){ - auto r = pixel_color.x(); - auto g = pixel_color.y(); - auto b = pixel_color.z(); - - // Translate the [0,1] component values to the byte range [0,255]. - int rbyte = int(255.999 * r); - int gbyte = int(255.999 * g); - int bbyte = int(255.999 * b); - - // Write out the pixel color components. - out << rbyte << ' ' << gbyte << ' ' << bbyte << '\n'; -}
\ No newline at end of file |
