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: glViewport

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2005
    Posts
    10

    glViewport

    Hi

    I wanted to know what should be the behavior of openGL, when defining the viewport as larger than the screen resolution.
    Say I'm using screenres of 800x600, but in my display func I call glViewport(0,0,1024,1024), what would be the result - would I see the whole scene?
    As I understand it, it's like putting a 10x15cm photo page, into a printer that outputs 20x30cm photos. So I would see only a part of the scene - am I right?

    Thanks

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    3,115

    Re: glViewport

    Yes, you would only see a part of the viewport; the lower left 800x600 part in your example.

  3. #3
    Junior Member Newbie
    Join Date
    Jan 2005
    Posts
    10

    Re: glViewport

    Thanks

Posting Permissions

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