public void UpdateView() { // This method will be called on the main thread when resizing, but we may be drawing on a secondary thread through the display link // Add a mutex around to avoid the threads accessing the context simultaneously openGLContext.CGLContext.Lock(); // Delegate to the scene object to update for a change in the view size controller.Scene.ResizeGLScene(Bounds); openGLContext.Update(); openGLContext.CGLContext.Unlock(); }
public override void Resize() { _context.Update(); }
public void UpdateGLContext() { openGLContext.View = this; openGLContext.Update(); }