cs330 panning zooming and orbiting a cube

I’m having some trouble with this assignment, I’ve completed most of it about 95%. I’m to use the modern openGL in visual studio with C++ code, to orbit the camera left to right horizontally, up and down vertically around a cube and assign that motion to the left mouse button holding left alt. Second, i’m to move the mouse up to zoom out/away from the cube and move the mouse down to zoom into the cube and assign that to the right mouse button holding left alt key. So far i’ve completed the first half and assigned the orbiting portion. But i have the zooming set to the scroll button of my mouse and i’m a bit lost on how to assign it to the requirements of the assignment. I’ve attached a PDF of my code so far.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *