コード例 #1
0
        private void btnColor_MouseClick_1(object sender, MouseEventArgs e)
        {
            DialogResult colorResult = colorDialog.ShowDialog();

            if (colorResult == DialogResult.OK)
            {
                GameAppFramework.GetGameAppFramework().DeviceColor = colorDialog.Color;
            }
            GameApp.GetGameApp().Renderer.RunWorkerAsync();
        }
コード例 #2
0
        public ParentForm()
        {
            InitializeComponent();
            Tools tools = new Tools();

            tools.MdiParent = this;
            tools.Show();

            // this.Controls.Add(new MyFavControl());

            GameApp.GetGameApp().MdiParent = this;
            GameApp.GetGameApp().Show();
            tools.Show();

            //GameApp.GetGameApp().RectangleToScreen(new Rectangle(0, 0, 992, 864));

            // tools.RectangleToScreen(new Rectangle(992, 864, 1168, 910));
        }
コード例 #3
0
 public static GameApp GetGameApp()
 {
     return(_gameapp = _gameapp ?? new GameApp());
 }
コード例 #4
0
 private void Slider_ValueChanged(object sender, EventArgs e)
 {
     SliderManager.GetSliderManager().CurrentValue = trackBar1.Value;
     SliderManager.GetSliderManager().HandleEvent();
     GameApp.GetGameApp().Renderer.RunWorkerAsync();
 }
コード例 #5
0
 public void InitializeDevice()
 {
     Device      = new Device(0, DeviceType.Hardware, GameApp.GetGameApp().Handle, CreateFlags.HardwareVertexProcessing, InitializePresentParameters());
     DeviceColor = Color.Black;
 }
コード例 #6
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(GameApp.GetGameApp());
 }