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: Does wglMakeCurrent reset the projection matrix?

  1. #1
    Intern Contributor
    Join Date
    Aug 2000
    Posts
    60

    Does wglMakeCurrent reset the projection matrix?

    Does wglMakeCurrent reset the projection matrix to a zero matrix or an identity matrix or something else? Does it do anything besides set a DC's current rendering context?

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

    Re: Does wglMakeCurrent reset the projection matrix?

    Yes, simply because opengl calls are valid for the current context, so if you have done any API call and then change your context, the API calls will not affect the new context.

  3. #3
    Intern Contributor
    Join Date
    Aug 2000
    Posts
    60

    Re: Does wglMakeCurrent reset the projection matrix?

    That confirms what I found out minutes before I read your post. I put all of my viewport and perspective matrix code right after the call to wglCreateContext and my problems are solved. Thanks!

    PS - my problem was that I could not for the sake of my life get the "camera" to be positioned and oriented properly, even when copying code from working programs.

Posting Permissions

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