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