Exemplo n.º 1
0
 /// <summary>
 /// Set SLGame State
 /// </summary>
 /// <param name="isshowcursor"></param>
 /// <param name="issizable"></param>
 public void SetSLGame(bool isshowcursor, bool issizable)
 {
     if (config == null)
     {
         config = new AssemblySettings(Assembly.GetAssembly(typeof(AssemblySettings)));
     }
     if (gdm == null)
     {
         gdm                          = new GraphicsDeviceManager(this);
         pp                           = new PresentationParameters();
         input                        = new SLInput();
         freecamera                   = new SLFreeCamera();
         Content.RootDirectory        = config["content"];
         gdm.PreparingDeviceSettings += new EventHandler <PreparingDeviceSettingsEventArgs>(gdm_PreparingDeviceSettings);
     }
     this.IsMouseVisible           = isshowcursor;
     this.Window.AllowUserResizing = issizable;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Set SLGame State
 /// </summary>
 /// <param name="isshowcursor"></param>
 /// <param name="issizable"></param>
 public void SetSLGame(bool isshowcursor, bool issizable)
 {
     if (config == null)
     {
         config = new AssemblySettings(Assembly.GetAssembly(typeof(AssemblySettings)));
     }
     if (gdm == null)
     {
         gdm = new GraphicsDeviceManager(this);
         pp = new PresentationParameters();
         input = new SLInput();
         freecamera = new SLFreeCamera();
         Content.RootDirectory = config["content"];
         gdm.PreparingDeviceSettings += new EventHandler<PreparingDeviceSettingsEventArgs>(gdm_PreparingDeviceSettings);
     }
     this.IsMouseVisible = isshowcursor;
     this.Window.AllowUserResizing = issizable;
 }