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: Reading the matrices on the stack

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2003
    Location
    San Diego, CA, USA
    Posts
    2

    Reading the matrices on the stack

    Sorry, but I am an absolute beginner...
    Is there any function that I can use to
    fetch the matrix that is on top of the
    stack ?
    Something that is the opposite of glLoadMatrix*()...

    Thanks

    S.

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Jan 2003
    Location
    Virginia
    Posts
    601

    Re: Reading the matrices on the stack

    Use the glGetDoublev or glGetFloatv functions passing the name of the stack and a pointer to the allocated memory to receive the matrix data.

  3. #3
    Junior Member Newbie
    Join Date
    Oct 2003
    Location
    San Diego, CA, USA
    Posts
    2

    Re: Reading the matrices on the stack

    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
  •