mainLoop() public method

public mainLoop ( float fps ) : void
fps float
return void
Esempio n. 1
0
        /// <summary>
        /// The main loop. This method is executed by the application event handler each time the application is idle.
        /// </summary>
        public void MainLoop()
        {
            KeyHandling();
            MouseMovement();
            CalcFPS();

            // render
            app.mainLoop(fps);
            Horde3DUtils.swapBuffers();

            // if mouse tracking is disabled call Invalidate() to redraw the scene
            Invalidate();
        }
Esempio n. 2
0
        /// <summary>
        /// The main loop. This method is executed by the application event handler each time the application is idle.
        /// </summary>
        public void MainLoop()
        {
            KeyHandling();
            MouseMovement();
            CalcFPS();

            // render
            app.mainLoop(fps);

            // Swap buffers
            OpenGL.SwapBuffers(dc);

            // if mouse tracking is disabled call Invalidate() to redraw the scene
            Invalidate();
        }