File indexing completed on 2025-01-18 09:37:00
0001 #ifndef BOOST_GIL_EXTENSION_RASTERIZATION_APPLY_RASTERIZER
0002 #define BOOST_GIL_EXTENSION_RASTERIZATION_APPLY_RASTERIZER
0003
0004 namespace boost { namespace gil {
0005
0006 namespace detail {
0007
0008 template <typename View, typename Rasterizer, typename Pixel, typename Tag>
0009 struct apply_rasterizer_op
0010 {
0011 void operator()(
0012 View const& view, Rasterizer const& rasterizer, Pixel const& pixel);
0013 };
0014
0015 }
0016
0017 template <typename View, typename Rasterizer, typename Pixel>
0018 void apply_rasterizer(
0019 View const& view, Rasterizer const& rasterizer, Pixel const& pixel)
0020 {
0021 using tag_t = typename Rasterizer::type;
0022 detail::apply_rasterizer_op<View, Rasterizer, Pixel, tag_t>{}(
0023 view, rasterizer, pixel);
0024 }
0025
0026 }}
0027
0028 #endif