Results 1 to 2 of 2

Thread: matrix of glviewport

  1. #1
    Guest

    matrix of glviewport

    hi, I would like to know what is the equivalent matrix generated by glviewport. Thx a million!

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,753

    Re: matrix of glviewport

    glViewport doesn't generate a matrix. It basically is just used to take the result of your vertex coordinates after being multiplied by the modelview then the projection matrix, and then determines where in the window coordinates to place it.

    If you want the exact formula, it can be found both in MSDN, and the OpenGL specification.
    Deiussum
    Software Engineer and OpenGL enthusiast

Similar Threads

  1. glViewPort
    By masic1990 in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 08-22-2016, 06:01 PM
  2. Replies: 0
    Last Post: 09-16-2015, 03:27 PM
  3. glViewport
    By gurkama in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 02-14-2005, 10:46 PM
  4. about glViewport
    By tigeryhong in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 02-08-2003, 10:30 AM
  5. glViewport()
    By huizhang in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 09-24-2002, 12:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean