How to use multiple viewports in OpenGL?

Victor Araújo picture Victor Araújo · Apr 7, 2009 · Viewed 56.2k times · Source

I need to show the same object in OpenGL in two different viewports, for instance, one using ortographic projection and the other using perspective. In order to do this, do I need to draw again the object after each call to glViewport()?

Answer

Ed James picture Ed James · Apr 7, 2009

Nehe has a good tutorial on how to do this, and his site is generally a good resource for OpenGL questions.