move mesa32 over to new dir
[reactos.git] / reactos / lib / mesa32 / src / math / m_translate.h
1
2 /*
3 * Mesa 3-D graphics library
4 * Version: 3.5
5 *
6 * Copyright (C) 1999-2001 Brian Paul 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 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
22 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
23 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 */
25
26
27 #ifndef _M_TRANSLATE_H_
28 #define _M_TRANSLATE_H_
29
30 #include "config.h"
31 #include "mtypes.h" /* hack for GLchan */
32
33
34
35 extern void _math_trans_1f(GLfloat *to,
36 CONST void *ptr,
37 GLuint stride,
38 GLenum type,
39 GLuint start,
40 GLuint n );
41
42 extern void _math_trans_1ui(GLuint *to,
43 CONST void *ptr,
44 GLuint stride,
45 GLenum type,
46 GLuint start,
47 GLuint n );
48
49 extern void _math_trans_1ub(GLubyte *to,
50 CONST void *ptr,
51 GLuint stride,
52 GLenum type,
53 GLuint start,
54 GLuint n );
55
56 extern void _math_trans_4ub(GLubyte (*to)[4],
57 CONST void *ptr,
58 GLuint stride,
59 GLenum type,
60 GLuint size,
61 GLuint start,
62 GLuint n );
63
64 extern void _math_trans_4chan( GLchan (*to)[4],
65 CONST void *ptr,
66 GLuint stride,
67 GLenum type,
68 GLuint size,
69 GLuint start,
70 GLuint n );
71
72 extern void _math_trans_4us(GLushort (*to)[4],
73 CONST void *ptr,
74 GLuint stride,
75 GLenum type,
76 GLuint size,
77 GLuint start,
78 GLuint n );
79
80 extern void _math_trans_4f(GLfloat (*to)[4],
81 CONST void *ptr,
82 GLuint stride,
83 GLenum type,
84 GLuint size,
85 GLuint start,
86 GLuint n );
87
88 extern void _math_trans_4fc(GLfloat (*to)[4],
89 CONST void *ptr,
90 GLuint stride,
91 GLenum type,
92 GLuint size,
93 GLuint start,
94 GLuint n );
95
96 extern void _math_trans_3f(GLfloat (*to)[3],
97 CONST void *ptr,
98 GLuint stride,
99 GLenum type,
100 GLuint start,
101 GLuint n );
102
103 extern void _math_init_translate( void );
104
105
106 #endif