VecVec4f.generate constructor
Implementation
factory VecVec4f.generate(int length, Vec4f Function(int i) generator, {bool dispose = true}) {
final pp = calloc<cvg.VecVec4f>()..ref.length = length;
pp.ref.ptr = calloc<cvg.Vec4f>(length);
for (var i = 0; i < length; i++) {
final v = generator(i);
pp.ref.ptr[i] = v.ref;
if (dispose) v.dispose();
}
return VecVec4f.fromPointer(pp);
}