View the step-by-step solution to:

Question

Help understanding GLUT_ACTIVE_ALT with mouse


To practice activity, write commented modern

OpenGL code that lets you orbit and zoom in or out of a 3D cube. Use the keyboard, mouse, and movement combinations below:

 Hold Alt plus the left mouse button and move the mouse left or right to orbit the camera horizontally around the cube.

 Hold Alt plus the left mouse button and move the mouse up or down to orbit the camera vertically along the cube.

 Hold Alt plus the right mouse button and move the mouse up to zoom out/away from the cube.

 Hold Alt plus the right mouse button and move the mouse down to zoom in to the cub

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question