//--------------------------------------------------------------------------------------------------------------------------------------------------- // // Copyright (C)2007 DarkWynter Studios. All rights reserved. // //--------------------------------------------------------------------------------------------------------------------------------------------------- // {Contact : darkwynter.com for licensing information //--------------------------------------------------------------------------------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Text; using System.Windows.Forms; using DarkWynter.Stream.PhysicsGpu; namespace DarkWynter.App { public partial class GpuPhysicsControl : UserControl { public GpuPhysicsControl() { InitializeComponent(); } private void buttonCommitChanges_Click(object sender, EventArgs e) { try { float gravity = float.Parse(this.textBoxGravity.Text); DarkWynter.Stream.PhysicsGpu.GpuProcessor.gravity = gravity; } catch {/* Do nothing.. */} } } }