/// <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(); } }
static void RunGame() { using (BasicDemo game = new BasicDemo()) { game.Run(); } }
static void Main() { using (Demo demo = new BasicDemo()) { LibraryManager.Initialize(demo); } }
static void RunDemo() { using (Demo demo = new BasicDemo()) { demo.Run(); } }
/// <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(); } }
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); }
static void Main() { using (Demo demo = new BasicDemo()) { GraphicsLibraryManager.Run(demo); } }
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); }
static void Main() { if (LibraryTest.Test() == false) return; using (Demo demo = new BasicDemo()) { demo.Run(); } }
static void Main() { if (LibraryTest.Test() == false) { return; } using (Demo demo = new BasicDemo()) { demo.Run(); } }
static void Main() { if (LibraryTest.Test() == false) { return; } using (var game = new BasicDemo()) { game.Run(); } }
static void Main() { try { Assembly.Load("BulletSharp"); } catch (Exception e) { MessageBox.Show(e.ToString(), "BulletSharp Error!"); return; } using (var game = new BasicDemo()) game.Run(); }
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); }
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; } } }
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; } }