getGLLibrary method

DynamicLibrary? getGLLibrary()

The standard OpenGL ES headers contain the declarations necessary for OpenGL ES. To use OpenGL ES 3.x, link your native module to libGLESv3.

Implementation

DynamicLibrary? getGLLibrary() {
  if (Platform.isAndroid) {
    return DynamicLibrary.open("libGLESv3.so");
  } else {
    return DynamicLibrary.process();
  }
}