Major rework of tnl module
[mesa.git] / src / mesa / math / m_translate.h
1 /* $Id: m_translate.h,v 1.3 2000/12/26 05:09:31 keithw Exp $ */
2
3 /*
4 * Mesa 3-D graphics library
5 * Version: 3.1
6 *
7 * Copyright (C) 1999 Brian Paul All Rights Reserved.
8 *
9 * Permission is hereby granted, free of charge, to any person obtaining a
10 * copy of this software and associated documentation files (the "Software"),
11 * to deal in the Software without restriction, including without limitation
12 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13 * and/or sell copies of the Software, and to permit persons to whom the
14 * Software is furnished to do so, subject to the following conditions:
15 *
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Software.
18 *
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
22 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
23 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 */
26
27
28 #ifndef _M_TRANSLATE_H_
29 #define _M_TRANSLATE_H_
30
31 #include "config.h"
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_4f(GLfloat (*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_3f(GLfloat (*to)[3],
73 CONST void *ptr,
74 GLuint stride,
75 GLenum type,
76 GLuint start,
77 GLuint n );
78
79 extern void _math_init_translate( void );
80
81
82 #endif