Exemplo n.º 1
0
 protected override void OnPause()
 {
     base.OnPause();
     // Note that the order matters - GLSurfaceView is paused first so that it does not try
     // to query the session. If Session is paused before GLSurfaceView, GLSurfaceView may
     // still call mSession.update() and get a SessionPausedException.
     mSurfaceView.OnPause();
     mSession.Pause();
 }
Exemplo n.º 2
0
 protected override void OnPause()
 {
     base.OnPause();
     // The following call pauses the rendering thread.
     // If your OpenGL application is memory intensive,
     // you should consider de-allocating objects that
     // consume significant memory here.
     mGLView.OnPause();
 }
Exemplo n.º 3
0
        protected override void OnPause()
        {
            base.OnPause();

            EngineApp._EnginePause_UpdateState(false, true);

#if OPENGLES
            glSurfaceView.OnPause();
#endif
        }
Exemplo n.º 4
0
 protected override void OnPause()
 {
     Log.Debug(TAG, "onPause start.");
     base.OnPause();
     if (mArSession != null)
     {
         mDisplayRotationManager.UnregisterDisplayListener();
         mSurfaceView.OnPause();
         mArSession.Pause();
     }
     Log.Debug(TAG, "onPause end.");
 }
Exemplo n.º 5
0
        protected override void OnPause()
        {
            base.OnPause();

            if (Scene != null)
            {
                Scene.Pause();
            }

            view.OnPause();
            Script.Reset();

            Music.Instance.Pause();
            Sample.Instance.Pause();
        }
Exemplo n.º 6
0
 protected override void OnPause()
 {
     base.OnPause();
     if (ContextCompat.CheckSelfPermission(this, Android.Manifest.Permission.Camera) == Android.Content.PM.Permission.Granted)
     {
         // Note that the order matters - GLSurfaceView is paused first so that it does not try
         // to query the session. If Session is paused before GLSurfaceView, GLSurfaceView may
         // still call mSession.update() and get a SessionPausedException.
         mDisplayRotationHelper.OnPause();
         mSurfaceView.OnPause();
         if (mSession != null)
         {
             mSession.Pause();
         }
     }
 }
Exemplo n.º 7
0
 protected override void OnPause()
 {
     base.OnPause();
     lock (_stateChanged)
     {
         if (this.IsFinishing)
         {
             _state = GLGameState.Finished;
         }
         else
         {
             _state = GLGameState.Paused;
         }
         //модификация кода
     }
     _wakeLock.Release();
     _glView.OnPause();
     //модификация кода
 }
Exemplo n.º 8
0
        protected override void OnPause()
        {
            Log.Debug(TAG, "OnPause Start.");
            base.OnPause();
            if (isOpenCameraOutside)
            {
                if (mCamera != null)
                {
                    mCamera.CloseCamera();
                    mCamera.StopCameraThread();
                    mCamera = null;
                }
            }

            if (mArSession != null)
            {
                mDisplayRotationManager.UnregisterDisplayListener();
                glSurfaceView.OnPause();
                mArSession.Pause();
                Log.Debug(TAG, "Session paused!");
            }
            Log.Debug(TAG, "OnPause end.");
        }
Exemplo n.º 9
0
 protected override void OnPause()
 {
     base.OnPause();
     _GLSurfaceView.OnPause();
 }
Exemplo n.º 10
0
 protected override void OnPause()
 {
     base.OnPause();
     glView.OnPause();
 }