Esempio n. 1
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            try
            {
                Assembly.Load("MonoGame.Framework, Version=3.0.1.0, Culture=neutral, PublicKeyToken=null");
            }
            catch
            {
                MessageBox.Show("MonoGame 3.0.1 redistributable not installed.", "Error!");
                return;
            }

            try
            {
                Assembly.Load("BulletSharp");
            }
            catch (Exception e)
            {
                MessageBox.Show(e.ToString(), "BulletSharp Error!");
                return;
            }

            using (BasicDemo game = new BasicDemo())
            {
                game.Run();
            }
        }
Esempio n. 2
0
 static void RunGame()
 {
     using (BasicDemo game = new BasicDemo())
     {
         game.Run();
     }
 }
Esempio n. 3
0
 static void Main()
 {
     using (Demo demo = new BasicDemo())
     {
         LibraryManager.Initialize(demo);
     }
 }
Esempio n. 4
0
 static void RunGame()
 {
     using (BasicDemo game = new BasicDemo())
     {
         game.Run();
     }
 }
Esempio n. 5
0
 static void RunDemo()
 {
     using (Demo demo = new BasicDemo())
     {
         demo.Run();
     }
 }
Esempio n. 6
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            try
            {
                Assembly.Load("Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553");
            }
            catch
            {
                MessageBox.Show("XNA 4.0 redistributable not installed.", "Error!");
                return;
            }

            try
            {
                Assembly.Load("BulletSharp");
            }
            catch (Exception e)
            {
                MessageBox.Show(e.ToString(), "BulletSharp Error!");
                return;
            }

            using (BasicDemo game = new BasicDemo())
            {
                game.Run();
            }
        }
Esempio n. 7
0
        static void Main()
        {
            try
            {
                Assembly.Load("OpenTK");
            }
            catch
            {
                MessageBox.Show("OpenTK not found." +
                    "Please download it from http://www.opentk.com.", "Error!");
                return;
            }

            try
            {
                Assembly.Load("BulletSharp");
            }
            catch(Exception e)
            {
                MessageBox.Show(e.ToString(), "BulletSharp Error!");
                return;
            }

            BasicDemo demo = new BasicDemo(GraphicsMode.Default);
            demo.Run(60);
        }
Esempio n. 8
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            try
            {
                Assembly.Load("MonoGame.Framework, Version=3.0.1.0, Culture=neutral, PublicKeyToken=null");
            }
            catch
            {
                MessageBox.Show("MonoGame 3.0.1 redistributable not installed.", "Error!");
                return;
            }

            try
            {
                Assembly.Load("BulletSharp");
            }
            catch (Exception e)
            {
                MessageBox.Show(e.ToString(), "BulletSharp Error!");
                return;
            }

            using (BasicDemo game = new BasicDemo())
            {
                game.Run();
            }
        }
Esempio n. 9
0
 static void RunDemo()
 {
     using (Demo demo = new BasicDemo())
     {
         demo.Run();
     }
 }
Esempio n. 10
0
 static void Main()
 {
     using (Demo demo = new BasicDemo())
     {
         GraphicsLibraryManager.Run(demo);
     }
 }
Esempio n. 11
0
        static void Main()
        {
            try
            {
                Assembly.Load("OpenTK");
            }
            catch
            {
                MessageBox.Show("OpenTK not found." +
                                "Please download it from http://www.opentk.com.", "Error!");
                return;
            }

            try
            {
                Assembly.Load("BulletSharp");
            }
            catch (Exception e)
            {
                MessageBox.Show(e.ToString(), "BulletSharp Error!");
                return;
            }

            BasicDemo demo = new BasicDemo(GraphicsMode.Default);

            demo.Run(60);
        }
Esempio n. 12
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            try
            {
                Assembly.Load("Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553");
            }
            catch
            {
                MessageBox.Show("XNA 4.0 redistributable not installed.", "Error!");
                return;
            }

            try
            {
                Assembly.Load("BulletSharp");
            }
            catch (Exception e)
            {
                MessageBox.Show(e.ToString(), "BulletSharp Error!");
                return;
            }

            using (BasicDemo game = new BasicDemo())
            {
                game.Run();
            }
        }
Esempio n. 13
0
        static void Main()
        {
            if (LibraryTest.Test() == false)
                return;

            using (Demo demo = new BasicDemo())
            {
                demo.Run();
            }
        }
Esempio n. 14
0
        static void Main()
        {
            if (LibraryTest.Test() == false)
            {
                return;
            }

            using (Demo demo = new BasicDemo())
            {
                demo.Run();
            }
        }
Esempio n. 15
0
        static void Main()
        {
            if (LibraryTest.Test() == false)
            {
                return;
            }

            using (var game = new BasicDemo())
            {
                game.Run();
            }
        }
Esempio n. 16
0
        static void Main()
        {
            try
            {
                Assembly.Load("BulletSharp");
            }
            catch (Exception e)
            {
                MessageBox.Show(e.ToString(), "BulletSharp Error!");
                return;
            }

            using (var game = new BasicDemo())
                game.Run();
        }
Esempio n. 17
0
        static void Main()
        {
            try
            {
                Assembly.Load("BulletSharp");
            }
            catch (Exception e)
            {
                MessageBox.Show(e.ToString(), "Error loading BulletSharp!");
                return;
            }

            BasicDemo demo = new BasicDemo(GraphicsMode.Default);

            demo.Run(60);
        }
Esempio n. 18
0
        static void Main()
        {
            try
            {
                Assembly.Load("Mogre");
            }
            catch (Exception e)
            {
                MessageBox.Show(e.ToString(), "Could not load Mogre!");
                return;
            }

            try
            {
                Assembly.Load("BulletSharp");
            }
            catch (Exception e)
            {
                MessageBox.Show(e.ToString(), "BulletSharp Error!");
                return;
            }

            try
            {
                BasicDemo app = new BasicDemo();
                app.Go();
            }
            catch (System.Runtime.InteropServices.SEHException)
            {
                // Check if it's an Ogre Exception
                if (Mogre.OgreException.IsThrown)
                {
                    Example.ShowOgreException();
                }
                else
                {
                    throw;
                }
            }
        }
Esempio n. 19
0
        static void Main()
        {
            try
            {
                Assembly.Load("Mogre");
            }
            catch (Exception e)
            {
                MessageBox.Show(e.ToString(), "Could not load Mogre!");
                return;
            }

            try
            {
                Assembly.Load("BulletSharp");
            }
            catch (Exception e)
            {
                MessageBox.Show(e.ToString(), "BulletSharp Error!");
                return;
            }

            try
            {
                BasicDemo app = new BasicDemo();
                app.Go();
            }
            catch (System.Runtime.InteropServices.SEHException)
            {
                // Check if it's an Ogre Exception
                if (Mogre.OgreException.IsThrown)
                    Example.ShowOgreException();
                else
                    throw;
            }
        }
Esempio n. 20
0
 static void Main()
 {
     using (Demo demo = new BasicDemo())
     {
         LibraryManager.Initialize(demo);
     }
 }
Esempio n. 21
0
 static void Main()
 {
     using (Demo demo = new BasicDemo())
     {
         GraphicsLibraryManager.Run(demo);
     }
 }