From 92000ddeed45107e2b6116dba7ed550997a49f3a Mon Sep 17 00:00:00 2001 From: Arthur Brainville Date: Fri, 2 Mar 2018 16:58:30 +0100 Subject: [PATCH] raytrace: remove code that ouput the 1st loaded texture as PPM Signed-off-by: Arthur Brainville (Ybalrid) --- examples/raytrace/main.cc | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/examples/raytrace/main.cc b/examples/raytrace/main.cc index 8361f51..ce4961f 100644 --- a/examples/raytrace/main.cc +++ b/examples/raytrace/main.cc @@ -776,28 +776,6 @@ int main(int argc, char **argv) { gAsset.default_material = default_material; gAsset.textures = textures; -#ifdef _DEBUG - // output raw data as RGB ASCII PPM file - if (textures.size() > 0) { - std::ofstream output( - "./" - "debug" - ".ppm"); - - if (output) { - output << "P3\n#sampleOutputDebug\n"; - example::Texture &t = textures[0]; - output << t.width << ' ' << t.height << "\n#imgSize\n255\n"; - for (size_t i{0}; i < t.width * t.height * t.components; - i += t.components) { - for (size_t j{0}; j < 3; ++j) - output << size_t(t.image[i + j]) << '\n'; - } - } - } - -#endif - for (size_t n = 0; n < meshes.size(); n++) { size_t mesh_id = gAsset.meshes.size(); gAsset.meshes.push_back(meshes[mesh_id]);