zoom in and zoom out


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.


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_rotate linking to what your actually rotating so it depends