! Fills \p m with the Camera modelView matrix values. First calls computeModelViewMatrix() to define the Camera modelView matrix. Note that this matrix may \e not be the one you would get from a \c glGetDoublev(GL_MODELVIEW_MATRIX, m). It actually represents the state of the \c GL_MODELVIEW after QGLViewer::preDraw(), at the \e beginning of QGLViewer::draw(). It converts from the world to t
| 649 | |
| 650 | See also getProjectionMatrix() and setFromModelViewMatrix(). */ |
| 651 | void Camera::getModelViewMatrix(GLdouble m[16]) const |
| 652 | { |
| 653 | // May not be needed, but easier like this. |
| 654 | // Prevents from retrieving matrix in stereo mode -> overwrites shifted value. |
| 655 | computeModelViewMatrix(); |
| 656 | for (unsigned short i=0; i<16; ++i) |
| 657 | m[i] = modelViewMatrix_[i]; |
| 658 | } |
| 659 | |
| 660 | |
| 661 | /*! Overloaded getModelViewMatrix(GLdouble m[16]) method using a \c GLfloat array instead. */ |
nothing calls this directly
no outgoing calls
no test coverage detected