blob: 527c7063d63bd75a8a6566e2e0f6bdb8ec91eb10 [file] [log] [blame]
Keith Whitwell23caf202000-11-16 21:05:34 +00001
2/*
3 * Mesa 3-D graphics library
Brian Paul74b493a2001-01-24 00:04:58 +00004 * Version: 3.5
Gareth Hughes22144ab2001-03-12 00:48:37 +00005 *
Brian Paul74b493a2001-01-24 00:04:58 +00006 * Copyright (C) 1999-2001 Brian Paul All Rights Reserved.
Gareth Hughes22144ab2001-03-12 00:48:37 +00007 *
Keith Whitwell23caf202000-11-16 21:05:34 +00008 * 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:
Gareth Hughes22144ab2001-03-12 00:48:37 +000014 *
Keith Whitwell23caf202000-11-16 21:05:34 +000015 * The above copyright notice and this permission notice shall be included
16 * in all copies or substantial portions of the Software.
Gareth Hughes22144ab2001-03-12 00:48:37 +000017 *
Keith Whitwell23caf202000-11-16 21:05:34 +000018 * 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
Brian Paul5a9026c2000-11-17 21:01:25 +000030#include "config.h"
Keith Whitwell4eebc902001-02-20 18:28:52 +000031#include "mtypes.h" /* hack for GLchan */
Brian Paul5a9026c2000-11-17 21:01:25 +000032
Keith Whitwell23caf202000-11-16 21:05:34 +000033
Keith Whitwell23caf202000-11-16 21:05:34 +000034
Keith Whitwellcab974c2000-12-26 05:09:27 +000035extern void _math_trans_1f(GLfloat *to,
36 CONST void *ptr,
37 GLuint stride,
38 GLenum type,
39 GLuint start,
40 GLuint n );
Keith Whitwell23caf202000-11-16 21:05:34 +000041
Keith Whitwellcab974c2000-12-26 05:09:27 +000042extern void _math_trans_1ui(GLuint *to,
43 CONST void *ptr,
44 GLuint stride,
45 GLenum type,
46 GLuint start,
47 GLuint n );
Keith Whitwell23caf202000-11-16 21:05:34 +000048
Keith Whitwellcab974c2000-12-26 05:09:27 +000049extern void _math_trans_1ub(GLubyte *to,
50 CONST void *ptr,
51 GLuint stride,
52 GLenum type,
53 GLuint start,
54 GLuint n );
Keith Whitwell23caf202000-11-16 21:05:34 +000055
Keith Whitwellcab974c2000-12-26 05:09:27 +000056extern 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 );
Keith Whitwell23caf202000-11-16 21:05:34 +000063
Keith Whitwell4eebc902001-02-20 18:28:52 +000064extern 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
Brian Paul74b493a2001-01-24 00:04:58 +000072extern 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
Keith Whitwellcab974c2000-12-26 05:09:27 +000080extern 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 );
Keith Whitwell23caf202000-11-16 21:05:34 +000087
Keith Whitwell12c037d2003-08-20 07:21:41 +000088extern 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
Keith Whitwellcab974c2000-12-26 05:09:27 +000096extern void _math_trans_3f(GLfloat (*to)[3],
97 CONST void *ptr,
98 GLuint stride,
99 GLenum type,
100 GLuint start,
101 GLuint n );
Keith Whitwell23caf202000-11-16 21:05:34 +0000102
Keith Whitwellcab974c2000-12-26 05:09:27 +0000103extern void _math_init_translate( void );
Keith Whitwell23caf202000-11-16 21:05:34 +0000104
105
106#endif