makeCurrent method

void makeCurrent(
  1. List<int> egls
)
override

Implementation

makeCurrent(List<int> egls) {
  _display = egls[3];
  _surface = egls[4];
  _context = egls[5];

  if (Platform.isAndroid) {
    /// bind context to this thread. All following OpenGL calls from this thread will use this context
    eglMakeCurrent(_display, _surface, _surface, _context);
  } else if (Platform.isIOS || Platform.isMacOS || Platform.isWindows) {
    // var _d = egl.eglTest();
    // print("makeCurrent egl test ${_d} ");
    var _result = egl.makeCurrent(_context);
    // print("ios makeCurrent _result: ${_result} ");
  } else {
    throw (" OpenGL-ES.makeCurrent ${Platform.operatingSystem} is not support yet ");
  }
}