Results 1 to 2 of 2

Thread: Getting the current Matrix?

  1. #1
    Member Contributor
    Join Date
    Apr 2002
    Posts
    94

    Getting the current Matrix?

    I can't seem to find out how to get the current matrix from opengl. I want to multiply a point by this matrix. Does anyone know how I can do this?
    P4 2Ghz, GEFORCE4, 512 Meg RAM, WIN2000, VStudio 6.0

  2. #2
    Senior Member Regular Contributor
    Join Date
    Apr 2001
    Posts
    103

    Re: Getting the current Matrix?

    GLfloat matrix[16];

    glGetFloatv(GL_MODELVIEW_MATRIX,matrix);

    hope that helps...

Similar Threads

  1. Example how to clip using current matrix in 2D?
    By irlies in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-22-2018, 08:24 AM
  2. Load the current Matrix
    By Zenith in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 09-15-2017, 12:52 PM
  3. Multiply current Matrix with the stacked Matrix
    By ColacX in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 06-22-2009, 02:07 PM
  4. Viewing current matrix
    By giedi in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 12-17-2001, 07:09 AM
  5. How can I get the current Matrix
    By aero in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 09-13-2001, 06:15 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