예제 #1
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            helloWorldGame = new MiniCubeGame();
            helloWorldGame.Run(DrawingSurface);
        }
예제 #2
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            helloWorldGame = new MiniCubeGame();
            helloWorldGame.Run(DrawingSurface);
        }
예제 #3
0
        static void Main()
        {
            using (var program = new MiniCubeGame())
            {
                var triOrange = new MiniTriRenderer(program) { ForegroundColor = Color.Orange };
                program.GameSystems.Add(triOrange);

                var multiControlForm = new MultiControlForm();
                multiControlForm.Show();

                var triRed = new MiniTriRenderer(program, multiControlForm.RenderControl1) { ForegroundColor = Color.Red };
                program.GameSystems.Add(triRed);

                var triGreen = new MiniTriRenderer(program, multiControlForm.RenderControl2) { ForegroundColor = Color.Green };
                program.GameSystems.Add(triGreen);

                var triBlue = new MiniTriRenderer(program, multiControlForm.RenderControl3) { ForegroundColor = Color.Blue };
                program.GameSystems.Add(triBlue);

                program.Run();
            }
        }
예제 #4
0
 public MainPage()
 {
     InitializeComponent();
     game = new MiniCubeGame();
     game.Run(this);
 }
예제 #5
0
파일: Program.cs 프로젝트: 2666fff/demo
 static void Main()
 {
     using (var program = new MiniCubeGame())
         program.Run();
 }
예제 #6
0
파일: Program.cs 프로젝트: wyrover/SharpDX
 static void Main()
 {
     using (var program = new MiniCubeGame())
         program.Run();
 }
예제 #7
0
 public MainPage()
 {
     InitializeComponent();
     game = new MiniCubeGame();
     game.Run(this);
 }
예제 #8
0
 static void Main()
 {
     var program = new MiniCubeGame();
     program.Run();
 }