Selaa lähdekoodia

Removed some debug printing

devel
Ludovic 'Archivist' Lagouardette 4 vuotta sitten
vanhempi
commit
23665e9550
2 muutettua tiedostoa jossa 5 lisäystä ja 12 poistoa
  1. +0
    -7
      include/gp/rendering/bmp_viewport.hpp
  2. +5
    -5
      tests/math.cpp

+ 0
- 7
include/gp/rendering/bmp_viewport.hpp Näytä tiedosto

@ -125,13 +125,6 @@ namespace gp{
filesize = pixel_array_end - destination.begin();
image_size = pixel_array_end - pixel_array_start;
std::cout << width << std::endl;
std::cout << height << std::endl;
std::cout << filesize << std::endl;
std::cout << image_size << std::endl;
return it;
}
};

+ 5
- 5
tests/math.cpp Näytä tiedosto

@ -78,12 +78,12 @@ struct render_test : public test_scaffold {
}
);
auto l_sdf = gp::difference_sdf<float>(
gp::sphere_sdf<float>({0.0,0.0,0.0}, 1.0),
gp::sphere_sdf<float>({-0.75,0.0,0.0}, 1.0)
);
auto sphere = a.scene_elements.push(
[&](vec3 pos) -> render_point {
auto l_sdf = gp::difference_sdf<float>(
gp::sphere_sdf<float>({0.0,0.0,0.0}, 1.0),
gp::sphere_sdf<float>({-0.75,0.0,0.0}, 1.0)
);
render_point ret;
ret.distance = l_sdf(pos);
ret.material = red;
@ -91,9 +91,9 @@ struct render_test : public test_scaffold {
}
);
auto l_sdf_b = gp::sphere_sdf<float>({-0.75,0.0,0.0}, 1.0);
auto sphere2 = a.scene_elements.push(
[&](vec3 pos) -> render_point {
auto l_sdf_b = gp::sphere_sdf<float>({-0.75,0.0,0.0}, 1.0);
render_point ret;
ret.distance = l_sdf_b(pos);
ret.material = green;

Ladataan…
Peruuta
Tallenna