Multiple viewports

Started by
2 comments, last by jonbell 20 years, 3 months ago
Hi i want to implement multiple viewports on the samne screen using OpenGL. For example I may be rendering a scene to the main viewport but then suddenly want to open another small rectangular part of the screen to show a differant part of the scene (for example a rear view mirror in a racing game or a four player split screen each window paying a differant scene). Whats the best way to go about this? I thought perhaps a seperate window and OGL pixel format etc for each window but that sounds somewhat messy. The mroe i think about this the more I think that there is not a simple solution
Advertisement
One window, and split it with glViewport.
I have a problem:

i have a win32 program and i use a principal 3D Viewport for a 3D scene, 3 secondary 2D Viewport for text and geometric figures. But if i put only a simple rectangle in a 2D viewport i look a wonderful flickering in the rectangle. The same problem is present if i use a bmp image or other figures...
Multiple Viewports

-~-The Cow of Darkness-~-

This topic is closed to new replies.

Advertisement