View Full Version : zoom in and zoom out

vamsee kanth
12-02-2004, 09:42 PM

can anyone help me with the implementation of zoom in and zoom out functions in openGL??

i want zoomm in and zoom out to happen with mouse click events???

code in this respect would be highly useful to me as iam a beginner in openGL.

thankx in advance.


12-03-2004, 12:40 AM
try using the GLUI class library, its easy to let key's handle zoom in and out in the usual gl way but with glui you can implement a toolbar with a rotate, move and zoom button easy to implement too with

view_rote=bottomPane->add_rotation("Rotate",view_rotate); view_rotate linking to what your actually rotating so it depends