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); }
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); }
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(); }
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; }