mesa: remove _math_matrix_alloc_inv()
[mesa.git] / src / mesa / math / m_matrix.h
index 3bc5de6cd4dde8b5ed33698ed343a1834a1a45b8..9f4ea258640c263a2da6f5db74bbf1c2db6fcd11 100644 (file)
 #define _M_MATRIX_H
 
 
+#include "main/glheader.h"
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 
 /**
  * \name Symbolic names to some of the entries in the matrix
@@ -67,7 +74,7 @@ enum GLmatrixtype {
  */
 typedef struct {
    GLfloat *m;         /**< 16 matrix elements (16-byte aligned) */
-   GLfloat *inv;       /**< optional 16-element inverse (16-byte aligned) */
+   GLfloat *inv;       /**< 16-element inverse (16-byte aligned) */
    GLuint flags;        /**< possible values determined by (of \link
                          * MatFlags MAT_FLAG_* flags\endlink)
                          */
@@ -83,9 +90,6 @@ _math_matrix_ctr( GLmatrix *m );
 extern void
 _math_matrix_dtr( GLmatrix *m );
 
-extern void
-_math_matrix_alloc_inv( GLmatrix *m );
-
 extern void
 _math_matrix_mul_matrix( GLmatrix *dest, const GLmatrix *a, const GLmatrix *b );
 
@@ -207,4 +211,8 @@ _mesa_transform_vector(GLfloat u[4], const GLfloat v[4], const GLfloat m[16]);
 /*@}*/
 
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif