MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / copy_from

Method copy_from

dep/agg/include/agg_rendering_buffer.h:116–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114 //--------------------------------------------------------------------
115 template <class RenBuf>
116 void copy_from(const RenBuf& src)
117 {
118 unsigned h = height();
119 if (src.height() < h)
120 h = src.height();
121
122 unsigned l = stride_abs();
123 if (src.stride_abs() < l)
124 l = src.stride_abs();
125
126 l *= sizeof(T);
127
128 unsigned y;
129 unsigned w = width();
130 for (y = 0; y < h; y++)
131 {
132 std::memcpy(row_ptr(0, y, w), src.row_ptr(y), l);
133 }
134 }
135
136 //--------------------------------------------------------------------
137 void clear(T value)

Callers

nothing calls this directly

Calls 3

heightMethod · 0.45
stride_absMethod · 0.45
row_ptrMethod · 0.45

Tested by

no test coverage detected