コード例 #1
0
        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();
        }
コード例 #2
0
ファイル: RenderContextNSGL.cs プロジェクト: Noesis/Managed
 public override void Resize()
 {
     _context.Update();
 }
コード例 #3
0
 public void UpdateGLContext()
 {
     openGLContext.View = this;
     openGLContext.Update();
 }