Multiple Views

Hi,
I’m curious as to how I can set up opengl in fullscreen win32 mode, to draw 4 different views. So like a top, front, side and camera point of view in each window which is 320x240?

Any ideas?

  • Derek

You have two choices. You can work with 4 viewports. Or you can create 4 child windows and get their DC.

glutFullScreen();
.
.
.
//use all of screen to draw four views:
glViewPort(0, 0, halfScreenWidth, halfScreenHeight);
drawViewOne();
glViewPort(halfScreenWidth, 0, halfScreenWidth, halfScreenHeight);
drawViewTwo();
… etc.