PDA

View Full Version : Viewport on another viewport..



Sasi_Opengl
09-17-2013, 05:11 AM
Hi,,
i am new to opengl. can i create a viewport on mouse move.. need help.. plz...

carsten neumann
09-17-2013, 12:55 PM
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 your other recent question 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.

Sasi_Opengl
09-17-2013, 09:22 PM
Thank you for your reply..