setMat4Uniform method
Implementation
bool setMat4Uniform(String name, List<double> val) {
ffi.Pointer<ffi.Float> valT = calloc(ffi.sizeOf<ffi.Float>() * 12);
valT[0] = val[0];
valT[1] = val[1];
valT[2] = val[2];
valT[3] = val[3];
valT[4] = val[4];
valT[5] = val[5];
valT[6] = val[6];
valT[7] = val[7];
valT[8] = val[8];
valT[9] = val[9];
valT[10] = val[10];
valT[11] = val[11];
int ret = _setUniform(
name.toNativeUtf8().cast<ffi.Char>(),
valT.cast<ffi.Void>(),
);
calloc.free(valT);
return ret == 0 ? false : true;
}