gldtBufferFloat function
Implementation
void gldtBufferFloat(int target, List<double> list, int usage) {
var bufferData = calloc<Float>(list.length);
for (var i = 0; i < list.length; i++) {
(bufferData + i).value = list[i];
}
glBufferData(
target, sizeOf<Float>() * list.length, bufferData.cast<Void>(), usage);
calloc.free(bufferData);
}