Пример #1
0
        public void ProcessInput(FrameEventArgs frameEventArgs)
        {
            GLFW.PollEvents();

            if (_glfwExceptionList == null || _glfwExceptionList.Count == 0)
            {
                return;
            }

            // Exception handling.
            // See CatchCallbackException for details.

            if (_glfwExceptionList.Count == 1)
            {
                var exception = _glfwExceptionList[0];
                _glfwExceptionList = null;

                // Rethrow without losing stack trace.
                ExceptionDispatchInfo.Capture(exception).Throw();
                throw exception; // Unreachable.
            }

            var list = _glfwExceptionList;

            _glfwExceptionList = null;
            throw new AggregateException("Exceptions have been caught inside GLFW callbacks.", list);
        }
Пример #2
0
 public void FrameProcess(FrameEventArgs eventArgs)
 {
     _renderTime += eventArgs.DeltaSeconds;
     _updateAudio();
     ClearDeadShaderInstances();
 }
 public void ProcessInput(FrameEventArgs frameEventArgs)
 {
     GLFW.PollEvents();
 }