Esempio n. 1
0
        public static void Idle()
        {
            if (ConsoleManager.IsOpen)
            {
                ConsoleManager.AnimateCursor();
            }
            else
            {
                if (ConsoleVarManager.GetValueToByte("DemoFreeglut") == 1 || ConsoleVarManager.GetValueToByte("DemoCubemapping") == 1 || ConsoleVarManager.GetValueToByte("DemoGUI") == 1)
                {
                    if (RotateAroundX)
                    {
                        SpinAroundX += SpinIncrement;
                        if (SpinAroundX >= 360)
                        {
                            SpinAroundX -= 360;
                        }
                    }

                    if (RotateAroundY)
                    {
                        SpinAroundY += SpinIncrement;
                        if (SpinAroundY >= 360)
                        {
                            SpinAroundY -= 360;
                        }
                    }

                    if (RotateAroundZ)
                    {
                        SpinAroundZ += SpinIncrement;
                        if (SpinAroundZ >= 360)
                        {
                            SpinAroundZ -= 360;
                        }
                    }

                    if (RotateAroundX || RotateAroundY || RotateAroundZ)
                    {
                        Display();
                    }
                }
            }
        }