makeCurrent method

dynamic makeCurrent(
  1. List<int> egls
)

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) {
    egl.eglTest();
    egl.makeCurrent(_context);
  }
}