Results 1 to 2 of 2

Thread: OpenGL save matrix?

  1. #1

    OpenGL save matrix?

    I'm having problems to setup the camera and perspective matrices, using my own algorithms, not GLUT's ones. I would like to compare the matrices produced by gluLookAt() and gluPerspective(), but I don't know how to retrieve them. I know how to setup a matrix using glMatrixMode() and glLoadMatrix(), but is there something like a glSaveMatrix()?

    As always thanks for your help.

  2. #2

    OpenGL save matrix?

    glGetFloatv(GL_MODELVIEW_MATRIX, @matrix_var);

    replace GL_MODELVIEW_MATRIX with whatever matrix you want to retrieve.
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

Bookmarks

Posting Permissions

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