MCPcopy Create free account
hub / github.com/AsPJT/DungeonTemplateLibrary / drawNormal

Method drawNormal

include/DTL/Retouch/Modulo.hpp:56–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 //STL
55 template<typename Matrix_, typename ...Args_>
56 DTL_VERSIONING_CPP14_CONSTEXPR
57 typename DTL_TYPE_ENABLE_IF<Matrix_::is_jagged::value, bool>::DTL_TYPE_EITYPE
58 drawNormal(Matrix_&& matrix_, Args_&& ... args_) const noexcept {
59 const Matrix_Var_ init{};
60 if (this->draw_value == init) return false;
61 const Index_Size end_y_{ this->calcEndY(matrix_.getY()) };
62 for (Index_Size row{ this->start_y }; row < end_y_; ++row) {
63 const Index_Size end_x_{ this->calcEndX(matrix_.getX(row)) };
64 for (Index_Size col{ this->start_x }; col < end_x_; ++col)
65 matrix_.mod(col, row, this->draw_value, args_...);
66 }
67 return true;
68 }
69
70 //Normal
71 template<typename Matrix_, typename ...Args_>

Callers

nothing calls this directly

Calls 5

modMethod · 0.80
calcEndYMethod · 0.45
getYMethod · 0.45
calcEndXMethod · 0.45
getXMethod · 0.45

Tested by

no test coverage detected