blob: 3151e45817647719b1261be3be19640f20e5d6bb [file] [log] [blame]
Brian Paul74b493a2001-01-24 00:04:58 +00001/* $Id: m_translate.h,v 1.4 2001/01/24 00:04:59 brianp Exp $ */
Keith Whitwell23caf202000-11-16 21:05:34 +00002
3/*
4 * Mesa 3-D graphics library
Brian Paul74b493a2001-01-24 00:04:58 +00005 * Version: 3.5
Keith Whitwell23caf202000-11-16 21:05:34 +00006 *
Brian Paul74b493a2001-01-24 00:04:58 +00007 * Copyright (C) 1999-2001 Brian Paul All Rights Reserved.
Keith Whitwell23caf202000-11-16 21:05:34 +00008 *
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
Brian Paul5a9026c2000-11-17 21:01:25 +000031#include "config.h"
32
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
Brian Paul74b493a2001-01-24 00:04:58 +000064extern void _math_trans_4us(GLushort (*to)[4],
65 CONST void *ptr,
66 GLuint stride,
67 GLenum type,
68 GLuint size,
69 GLuint start,
70 GLuint n );
71
Keith Whitwellcab974c2000-12-26 05:09:27 +000072extern void _math_trans_4f(GLfloat (*to)[4],
73 CONST void *ptr,
74 GLuint stride,
75 GLenum type,
76 GLuint size,
77 GLuint start,
78 GLuint n );
Keith Whitwell23caf202000-11-16 21:05:34 +000079
Keith Whitwellcab974c2000-12-26 05:09:27 +000080extern void _math_trans_3f(GLfloat (*to)[3],
81 CONST void *ptr,
82 GLuint stride,
83 GLenum type,
84 GLuint start,
85 GLuint n );
Keith Whitwell23caf202000-11-16 21:05:34 +000086
Keith Whitwellcab974c2000-12-26 05:09:27 +000087extern void _math_init_translate( void );
Keith Whitwell23caf202000-11-16 21:05:34 +000088
89
90#endif