コード例 #1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="game">The Game object</param>
 /// <param name="textureName">Texture name</param>
 /// <param name="targetRectangle">Position of the component on the screen</param>
 /// <param name="isChecked">Initial state of the checkbox</param>
 public Checkbox(Graphics3DSampleGame game, string textureName, Rectangle targetRectangle, bool isChecked)
     : base(game, targetRectangle)
 {
     asset = textureName;
     this.isChecked = isChecked;
 }
コード例 #2
0
ファイル: Button.cs プロジェクト: Nailz/MonoGame-Samples
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="game">The Game object</param>
 /// <param name="textureName">Texture Name</param>
 /// <param name="targetRectangle">Position of the component on the screen</param>
 /// <param name="initialValue">Initial value</param>
 public Button (Graphics3DSampleGame game, string textureName, Rectangle targetRectangle, int initialValue)
     : base(game, targetRectangle)
 {
     asset = textureName;
     value = initialValue;
 }
コード例 #3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="game">The Game oject</param>
 /// <param name="targetRectangle">Position of the component on the screen</param>
 public Clickable(Graphics3DSampleGame game, Rectangle targetRectangle)
     : base(game)
 {
     rectangle = targetRectangle;
 }
コード例 #4
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="game">The Game object</param>
 /// <param name="textureName">Texture Name</param>
 /// <param name="targetRectangle">Position of the component on the screen</param>
 /// <param name="initialValue">Initial value</param>
 public Button(Graphics3DSampleGame game, string textureName, Rectangle targetRectangle, int initialValue)
     : base(game, targetRectangle)
 {
     asset = textureName;
     value = initialValue;
 }
コード例 #5
0
ファイル: Main.cs プロジェクト: bwfox/MonoGameDepthBufferBug
 static void Main()
 {
     using (var game = new Graphics3DSampleGame())
         game.Run();
 }
コード例 #6
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="game">The Game object</param>
 /// <param name="textureName">Texture name</param>
 /// <param name="targetRectangle">Position of the component on the screen</param>
 /// <param name="isChecked">Initial state of the checkbox</param>
 public Checkbox(Graphics3DSampleGame game, string textureName, Rectangle targetRectangle, bool isChecked)
     : base(game, targetRectangle)
 {
     asset = textureName;
     this.isChecked = isChecked;
 }
コード例 #7
0
ファイル: Clickable.cs プロジェクト: Nailz/MonoGame-Samples
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="game">The Game oject</param>
 /// <param name="targetRectangle">Position of the component on the screen</param>
 public Clickable(Graphics3DSampleGame game, Rectangle targetRectangle)
     : base(game)
 {
     rectangle = targetRectangle;
 }
コード例 #8
0
ファイル: Main.cs プロジェクト: Nailz/MonoGame-Samples
		public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
		{
			game = new Graphics3DSampleGame ();
			game.Run ();
		}
コード例 #9
0
 public override void FinishedLaunching(MonoMac.Foundation.NSObject notification)
 {
     game = new Graphics3DSampleGame();
     game.Run();
 }
コード例 #10
0
ファイル: Main.cs プロジェクト: bwfox/MonoGameDepthBufferBug
 static void Main()
 {
     using (var game = new Graphics3DSampleGame())
         game.Run();
 }