Exemple #1
0
        private bool Frame()
        {
            // Do the frame processing for the application object.
            if (!Application.Frame())
            {
                return(false);
            }

            //// Set the frame time for calculating the updated position.
            //Position.FrameTime = Timer.FrameTime;

            //// Do the frame processing for the graphics object.
            //if (!Graphics.Frame(Position))
            //    return false;

            //// Finally render the graphics to the screen.
            //if (!Graphics.Render())
            //    return false;

            return(true);
        }
Exemple #2
0
        public bool Initialize()
        {
            // Initialize the system configuration.
            if (Configuration == null)
            {
                Configuration = new SystemConfiguration();
            }

            // Initialize windows api.
            InitializeWindows();

            // Create the application wrapper object.
            Application = new Application();

            // Initialize the application wrapper object.
            if (!Application.Initialize(Configuration, MainForm.Handle))
            {
                return(false);
            }

            return(true);
        }
Exemple #3
0
        public void Shutdown()
        {
            //// Release the sound object
            //if (Sound != null)
            //{
            //    Sound.Shutdown();
            //    Sound = null;
            //}

            //if (Graphics != null)
            //{
            //    Graphics.Shutdown();
            //    Graphics = null;
            //}

            // Release the application wrapper object.
            if (Application != null)
            {
                Application.Shutdown();
                Application = null;
            }

            ShutdownWindows();
        }
Exemple #4
0
        public bool Initialize()
        {
            // Initialize the system configuration.
            if(Configuration == null)
                Configuration = new SystemConfiguration();

            // Initialize windows api.
            InitializeWindows();

            // Create the application wrapper object.
            Application = new Application();

            // Initialize the application wrapper object.
            if (!Application.Initialize(Configuration, MainForm.Handle))
                return false;

            return true;
        }