mesa/main: use call_once instead of open-coding
[mesa.git] / src / mesa / math / m_matrix.h
index fc65f84dcf40fa7535d7868fb65d168c09a5f275..6de9e1a84cd865bd6375daf5ef1be1e6659d474b 100644 (file)
@@ -109,6 +109,12 @@ _math_matrix_rotate( GLmatrix *m, GLfloat angle,
 extern void
 _math_matrix_scale( GLmatrix *mat, GLfloat x, GLfloat y, GLfloat z );
 
+extern void
+_math_float_ortho(float *m,
+                  float left, float right,
+                  float bottom, float top,
+                  float nearval, float farval);
+
 extern void
 _math_matrix_ortho( GLmatrix *mat,
                    GLfloat left, GLfloat right,
@@ -122,8 +128,8 @@ _math_matrix_frustum( GLmatrix *mat,
                      GLfloat nearval, GLfloat farval );
 
 extern void
-_math_matrix_viewport(GLmatrix *m, GLint x, GLint y, GLint width, GLint height,
-                      GLdouble zNear, GLdouble zFar, GLdouble depthMax);
+_math_matrix_viewport( GLmatrix *m, const float scale[3],
+                       const float translate[3], double depthMax );
 
 extern void
 _math_matrix_set_identity( GLmatrix *dest );