setIntUniform method
- set INT
Implementation
bool setIntUniform(String name, int val) {
ffi.Pointer<ffi.Int32> valT = calloc(ffi.sizeOf<ffi.Int32>());
valT.value = val;
int ret = _setUniform(
name.toNativeUtf8().cast<ffi.Char>(),
valT.cast<ffi.Void>(),
);
calloc.free(valT);
return ret == 0 ? false : true;
}