public override void PaintToOutputWindow()
        {
            if (!_isInitGLControl)
            {
                return;
            }

            //var innumber = dbugCount;
            //dbugCount++;
            //Console.WriteLine(">" + innumber);

#if DEBUG
            //dbugStopWatch.Reset();
            //dbugStopWatch.Start();
#endif
            _windowControl.MakeCurrent();
            _openGLViewport.PaintMe();
            _windowControl.SwapBuffers();
#if DEBUG
            //dbugStopWatch.Stop();
            //long millisec_per_frame = dbugStopWatch.ElapsedMilliseconds;
            //int fps = (int)(1000.0f / millisec_per_frame);
            //System.Diagnostics.Debug.WriteLine(fps);
#endif
            //Console.WriteLine("<" + innumber);
        }
Exemple #2
0
        public override void PaintToOutputWindow()
        {
            if (!_isInitGLControl)
            {
                return;
            }
            _windowControl.MakeCurrent();
            _openGLViewport.PaintMe();
            _windowControl.SwapBuffers();

            //Console.WriteLine("<" + innumber);
        }
        //public override void PaintToCanvas(Canvas canvas)
        //{
        //    throw new NotImplementedException();
        //}

        public override void PaintToOutputWindow()
        {
            //if (!isInitGLControl)
            //{
            //    return;
            //}
            //var innumber = dbugCount;
            //dbugCount++;
            //Console.WriteLine(">" + innumber);
            //TODO: review here

            _windowControl.MakeCurrent();
            _openGLViewport.PaintMe();
            _windowControl.SwapBuffers();

            //Console.WriteLine("<" + innumber);
        }
        //#endif
        public override void PaintToOutputWindow()
        {
            if (!_isInitGLControl)
            {
                return;
            }

            //#if DEBUG
            _stopWatch.Reset();
            _stopWatch.Start();
            //#endif
            _windowControl.MakeCurrent();
            _openGLViewport.PaintMe();
            _windowControl.SwapBuffers();
            //
            _stopWatch.Stop();
#if DEBUG
            long millisec_per_frame = _stopWatch.ElapsedMilliseconds;
            int  fps = (int)(1000.0f / millisec_per_frame);
            System.Diagnostics.Debug.WriteLine("fps:" + fps);
#endif
        }