problem in glScaled

I have a problem in scaling

I have an object in 3d space(view using glLookAt)

I used the following commands for zoom in

zoom function()

There is no “zoom in” effect of the object

can anybody tell me where I went wrong?

thanks in advance

in your display function, you may reset modelview matrix to identity (glLoadIdentity) before call gluLookAt. so your scale is erased.

you should do in zoom:
zoom_enabled = true;

and in your display function, after gluLookAt:
if (zoom_enabled) glScale(…)