/*============================================================================= Copyright (c) 2011-2017 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ #ifndef SPROUT_DARKROOM_TRACERS_CALCULATE_HPP #define SPROUT_DARKROOM_TRACERS_CALCULATE_HPP #include #include #include #include namespace sprout { namespace darkroom { namespace tracers { // // calculate_result // template struct calculate_result : public sprout::identity {}; template struct calculate_result : public sprout::darkroom::tracers::calculate_result {}; template struct calculate_result : public sprout::darkroom::tracers::calculate_result {}; template struct calculate_result : public sprout::darkroom::tracers::calculate_result {}; // // calculate // template inline SPROUT_CONSTEXPR typename sprout::darkroom::tracers::calculate_result::type calculate( Tracer const& tracer, Renderer const& renderer, Camera const& camera, Objects const& objs, Lights const& lights, Unit2D const& x, Unit2D const& y, Unit2D const& width, Unit2D const& height, std::size_t depth_max, Refractions const& refracs ) { return tracer(renderer, camera, objs, lights, x, y, width, height, depth_max, refracs); } template inline SPROUT_CONSTEXPR typename sprout::darkroom::tracers::calculate_result::type calculate( Tracer const& tracer, Renderer const& renderer, Camera const& camera, Objects const& objs, Lights const& lights, Unit2D const& x, Unit2D const& y, Unit2D const& width, Unit2D const& height, std::size_t depth_max = sprout::darkroom::renderers::default_depth ) { return tracer(renderer, camera, objs, lights, x, y, width, height, depth_max); } } // namespace tracers } // namespace darkroom } // namespace sprout #endif // #ifndef SPROUT_DARKROOM_TRACERS_CALCULATE_HPP