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

Method drawNormal

include/DTL/Utility/Init.hpp:56–66  ·  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 Index_Size end_y_{ this->calcEndY(matrix_.getY()) };
60 for (Index_Size row{ this->start_y }; row < end_y_; ++row) {
61 const Index_Size end_x_{ this->calcEndX(matrix_.getX(row)) };
62 for (Index_Size col{ this->start_x }; col < end_x_; ++col)
63 matrix_.set(col, row, this->draw_value, args_...);
64 }
65 return true;
66 }
67
68 //Normal
69 template<typename Matrix_, typename ...Args_>

Callers 15

drawMethod · 0.45
drawAddMethod · 0.45
drawOtherMethod · 0.45
drawOperatorMethod · 0.45
drawFunctionMethod · 0.45
drawAddOperatorMethod · 0.45
drawArrayMethod · 0.45
drawMethod · 0.45
drawAddMethod · 0.45
drawOtherMethod · 0.45
drawOperatorMethod · 0.45
drawFunctionMethod · 0.45

Calls 5

setMethod · 0.80
calcEndYMethod · 0.45
getYMethod · 0.45
calcEndXMethod · 0.45
getXMethod · 0.45

Tested by

no test coverage detected