mainLoop() public méthode

public mainLoop ( float fps ) : void
fps float
Résultat void
Exemple #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();
        }
Exemple #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();
        }