Viewport on another viewport..

Hi,
i am new to opengl. can i create a viewport on mouse move… need help… plz…

In OpenGL the viewport controls the mapping from normalized device coordinates to window coordinates, as such you don’t create one of these but instead set it and it affects any rendering done from that point onward until you change the viewport settings again.

Given [thread=182717]your other recent question[/thread] I’m wondering if what you really want is creating a new OpenGL widget/window? That is something outside of OpenGL (i.e. off-topic here) and depends on the windowing toolkit/api that you use - you may want to ask on a forum that is dedicated to whatever you use there.

Thank you for your reply…