void VboMeshSampleApp::mouseWheel( MouseEvent event ) { // Zoom in/out with mouse wheel Vec3f eye = mCamera.getEyePoint(); eye.z += event.getWheelIncrement() * 0.1f; mCamera.setEyePoint( eye ); }
void PaintingBeingsApp::mouseWheel(MouseEvent event) { if (_launchAlgoGen) { Vec3f eye = _camera.getEyePoint(); eye.z -= event.getWheelIncrement() * 1.5f; float eyeMaxZ = static_cast<float>(_image.getMiniatureSize()) * 10.0f; if (eye.z > 1.0f && eye.z < eyeMaxZ) _camera.setEyePoint(eye); } }
void BulletTestApp::mouseWheel( MouseEvent event ) { mCamera.setEyePoint( mCamera.getEyePoint() + Vec3f( 0.0f, 0.0f, event.getWheelIncrement() * 20.0f ) ); }