/// <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;
 }
Exemple #2
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;
 }
Exemple #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;
 }
Exemple #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;
 }
Exemple #5
0
 static void Main()
 {
     using (var game = new Graphics3DSampleGame())
         game.Run();
 }
 /// <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;
 }
Exemple #7
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;
 }
Exemple #8
0
		public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
		{
			game = new Graphics3DSampleGame ();
			game.Run ();
		}
Exemple #9
0
 public override void FinishedLaunching(MonoMac.Foundation.NSObject notification)
 {
     game = new Graphics3DSampleGame();
     game.Run();
 }
Exemple #10
0
 static void Main()
 {
     using (var game = new Graphics3DSampleGame())
         game.Run();
 }