private void CameraSettings_Changed(object sender, EventArgs e) { CSharpUtilities.DLLImporter.NativeMethods.SetCameraZoomSpeed(myCameraSettingsSliders.GetXValue()); CSharpUtilities.DLLImporter.NativeMethods.SetCameraMovementSpeed(myCameraSettingsSliders.GetYValue()); CSharpUtilities.DLLImporter.NativeMethods.SetCameraRotationSpeed(myCameraSettingsSliders.GetZValue()); float xValue = myCameraSettingsSliders.GetXValue(); Properties.Settings.Default.DefaultSettingCameraZoom = myCameraSettingsSliders.GetXValue(); Properties.Settings.Default.DefaultSettingCameraMovement = myCameraSettingsSliders.GetYValue(); Properties.Settings.Default.DefaultSettingCameraRotation = myCameraSettingsSliders.GetZValue(); Properties.Settings.Default.Save(); }
private void ManualObjectZRotation_Scroll(object sender, EventArgs e) { if (myEnableAutoRotation.Checked == true) { return; } CSharpUtilities.DLLImporter.NativeMethods.SetRotateObjectAtZ(myObjectManualRotation.GetZValue()); }
private void AutoRotation_Scroll(object sender, EventArgs e) { if (myEnableAutoRotation.Checked == false) { return; } CSharpUtilities.DLLImporter.NativeMethods.RotateObjectAtX(myObjectAutoRotation.GetXValue()); CSharpUtilities.DLLImporter.NativeMethods.RotateObjectAtY(myObjectAutoRotation.GetYValue()); CSharpUtilities.DLLImporter.NativeMethods.RotateObjectAtZ(myObjectAutoRotation.GetZValue()); }
private void DirectionalLight_Scroll(object sender, EventArgs e) { CSharpUtilities.DLLImporter.NativeMethods.DirectionaLightRotateX(myDirectionalLightRotation.GetXValue()); CSharpUtilities.DLLImporter.NativeMethods.DirectionaLightRotateY(myDirectionalLightRotation.GetZValue()); CSharpUtilities.DLLImporter.NativeMethods.DirectionaLightRotateZ(myDirectionalLightRotation.GetYValue()); }