mesa: Restore 78-column wrapping of license text in C-style comments.
[mesa.git] / src / mesa / main / matrix.h
1 /*
2 * Mesa 3-D graphics library
3 * Version: 7.5
4 *
5 * Copyright (C) 1999-2008 Brian Paul All Rights Reserved.
6 * Copyright (C) 2009 VMware, Inc. All Rights Reserved.
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a
9 * copy of this software and associated documentation files (the "Software"),
10 * to deal in the Software without restriction, including without limitation
11 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
12 * and/or sell copies of the Software, and to permit persons to whom the
13 * Software is furnished to do so, subject to the following conditions:
14 *
15 * The above copyright notice and this permission notice shall be included
16 * in all copies or substantial portions of the Software.
17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
21 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
22 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
23 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24 * OTHER DEALINGS IN THE SOFTWARE.
25 */
26
27
28 #ifndef MATRIX_H
29 #define MATRIX_H
30
31
32 #include "glheader.h"
33
34 struct gl_context;
35
36 extern void GLAPIENTRY
37 _mesa_Frustum( GLdouble left, GLdouble right,
38 GLdouble bottom, GLdouble top,
39 GLdouble nearval, GLdouble farval );
40
41 extern void GLAPIENTRY
42 _mesa_Ortho( GLdouble left, GLdouble right,
43 GLdouble bottom, GLdouble top,
44 GLdouble nearval, GLdouble farval );
45
46 extern void GLAPIENTRY
47 _mesa_PushMatrix( void );
48
49 extern void GLAPIENTRY
50 _mesa_PopMatrix( void );
51
52 extern void GLAPIENTRY
53 _mesa_LoadIdentity( void );
54
55 extern void GLAPIENTRY
56 _mesa_LoadMatrixf( const GLfloat *m );
57
58 extern void GLAPIENTRY
59 _mesa_LoadMatrixd( const GLdouble *m );
60
61 extern void GLAPIENTRY
62 _mesa_MatrixMode( GLenum mode );
63
64 extern void GLAPIENTRY
65 _mesa_MultMatrixf( const GLfloat *m );
66
67 extern void GLAPIENTRY
68 _mesa_MultMatrixd( const GLdouble *m );
69
70 extern void GLAPIENTRY
71 _mesa_Rotatef( GLfloat angle, GLfloat x, GLfloat y, GLfloat z );
72
73 extern void GLAPIENTRY
74 _mesa_Rotated( GLdouble angle, GLdouble x, GLdouble y, GLdouble z );
75
76 extern void GLAPIENTRY
77 _mesa_Scalef( GLfloat x, GLfloat y, GLfloat z );
78
79 extern void GLAPIENTRY
80 _mesa_Scaled( GLdouble x, GLdouble y, GLdouble z );
81
82 extern void GLAPIENTRY
83 _mesa_Translatef( GLfloat x, GLfloat y, GLfloat z );
84
85 extern void GLAPIENTRY
86 _mesa_Translated( GLdouble x, GLdouble y, GLdouble z );
87
88 extern void GLAPIENTRY
89 _mesa_LoadTransposeMatrixf( const GLfloat *m );
90
91 extern void GLAPIENTRY
92 _mesa_LoadTransposeMatrixd( const GLdouble *m );
93
94 extern void GLAPIENTRY
95 _mesa_MultTransposeMatrixf( const GLfloat *m );
96
97 extern void GLAPIENTRY
98 _mesa_MultTransposeMatrixd( const GLdouble *m );
99
100
101 extern void
102 _mesa_init_matrix( struct gl_context * ctx );
103
104 extern void
105 _mesa_init_transform( struct gl_context *ctx );
106
107 extern void
108 _mesa_free_matrix_data( struct gl_context *ctx );
109
110 extern void
111 _mesa_update_modelview_project( struct gl_context *ctx, GLuint newstate );
112
113
114 #endif