Open amieleg opened 4 years ago
Create an algorithm that takes a std::array<std::vector<jdscn::Position2D> ,3> and fills a triangle with the object's material color. Discussion below for return type :tada:
std::array<std::vector<jdscn::Position2D> ,3>
I think we should add
using point = std::pair<jdscn::Position2D, jdscn::Color> using rasterizedShape = std::vector<point>
and have both the line algorithm and the filling algorithm return rasterizedShape
rasterizedShape
Create an algorithm that takes a
std::array<std::vector<jdscn::Position2D> ,3>
and fills a triangle with the object's material color. Discussion below for return type :tada: