setShader method
**** SET SHADER Set the shader to be used in the current texture.
isContinuous
not used yet
vertexShader
String of the vertex shader source
fragmentShader
String of the fragment shader source
returns the compiling shader error string or an empty string if no errors.
Implementation
String setShader(
bool isContinuous,
String vertexShader,
String fragmentShader,
) {
ffi.Pointer<ffi.Char> err = _setShader(
isContinuous ? 1 : 0,
vertexShader.toNativeUtf8().cast<ffi.Char>(),
fragmentShader.toNativeUtf8().cast<ffi.Char>(),
);
String ret = err.cast<Utf8>().toDartString();
return ret;
}