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
    Senior Member Frequent Contributor
    Join Date
    Jan 2003
    Location
    Virginia
    Posts
    586

    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!

Similar Threads

  1. What is The Stack
    By mbkelly in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 01-15-2019, 09:00 AM
  2. Using matrix stack - my code seems to modify the whole stack
    By chromosom in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 06-04-2014, 03:12 AM
  3. GL_PROJECTION stack
    By kosta_m in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-18-2002, 02:50 AM
  4. matrix stack
    By stim in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 06-04-2001, 04:51 AM
  5. matrix stack help
    By hoshi55 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-10-2001, 10:59 AM

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