Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Multiple Views

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2000
    Posts
    6

    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

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Feb 2000
    Posts
    569

    Re: Multiple Views

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

  3. #3
    Junior Member Regular Contributor
    Join Date
    Jun 2000
    Location
    Cambridge, England
    Posts
    190

    Re: Multiple Views

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •