I am new to opengl . I am using opengl with Qt ,my problem is , i am making a quad and trying to implement zoomin and zoomout option .
but i have some doubts , and need help.
1. i tried with scalef () .. is it the right approach to implement that or i need to use glulookat () or any other function for zoom implementation???
2. when i am using scalef() , the object moves with the zoomfactor.. how to scale an object around its own axis..
here is the code of paintGL() function :
void glwidget::resizeGL(int w, int h)
void glwidget:: paintGL()
where should i change in code so that it shows proper zooming ...
Thanks in Advance
Last edited by new-to-opengl; 10-01-2013 at 12:10 AM.