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(); }
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)); }
public static GameApp GetGameApp() { return(_gameapp = _gameapp ?? new GameApp()); }
private void Slider_ValueChanged(object sender, EventArgs e) { SliderManager.GetSliderManager().CurrentValue = trackBar1.Value; SliderManager.GetSliderManager().HandleEvent(); GameApp.GetGameApp().Renderer.RunWorkerAsync(); }
public void InitializeDevice() { Device = new Device(0, DeviceType.Hardware, GameApp.GetGameApp().Handle, CreateFlags.HardwareVertexProcessing, InitializePresentParameters()); DeviceColor = Color.Black; }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(GameApp.GetGameApp()); }