1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

fix index_range implementation

This commit is contained in:
bolero-MURAKAMI 2013-03-31 15:14:10 +09:00
parent 331aaa3559
commit 049d4592c2
78 changed files with 178 additions and 225 deletions

View file

@ -51,7 +51,7 @@ namespace sprout {
template<typename Intersection, typename Objects>
SPROUT_CONSTEXPR color_type
operator()(Intersection const& inter, Objects const& objs) const {
return shade_1(inter, objs, sprout::index_range<0, sizeof...(Lights)>::make());
return shade_1(inter, objs, sprout::make_index_tuple<sizeof...(Lights)>::make());
}
};
//

View file

@ -7,6 +7,7 @@
#include <sprout/array/array.hpp>
#include <sprout/container/traits.hpp>
#include <sprout/container/functions.hpp>
#include <sprout/container/indexes.hpp>
#include <sprout/darkroom/colors/rgb.hpp>
namespace sprout {
@ -77,12 +78,7 @@ namespace sprout {
sprout::darkroom::pixels::detail::generate_impl_line<Pixels>(
raytracer, renderer, camera, objs, lights,
x, y + YIndexes, width, height, depth_max,
sprout::index_range<
0,
sprout::container_traits<
typename sprout::container_traits<Pixels>::value_type
>::static_size
>::make()
sprout::container_indexes<typename sprout::container_traits<Pixels>::value_type>::make()
)...
);
}
@ -115,10 +111,7 @@ namespace sprout {
return sprout::darkroom::pixels::detail::generate_impl<Pixels>(
raytracer, renderer, camera, objs, lights,
x, y, width, height, depth_max,
sprout::index_range<
0,
sprout::container_traits<Pixels>::static_size
>::make()
sprout::container_indexes<Pixels>::make()
);
}