Keith Whitwell | 23caf20 | 2000-11-16 21:05:34 +0000 | [diff] [blame] | 1 | |
| 2 | /* |
| 3 | * Mesa 3-D graphics library |
Brian Paul | 74b493a | 2001-01-24 00:04:58 +0000 | [diff] [blame] | 4 | * Version: 3.5 |
Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 5 | * |
Brian Paul | 74b493a | 2001-01-24 00:04:58 +0000 | [diff] [blame] | 6 | * Copyright (C) 1999-2001 Brian Paul All Rights Reserved. |
Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 7 | * |
Keith Whitwell | 23caf20 | 2000-11-16 21:05:34 +0000 | [diff] [blame] | 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: |
Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 14 | * |
Keith Whitwell | 23caf20 | 2000-11-16 21:05:34 +0000 | [diff] [blame] | 15 | * The above copyright notice and this permission notice shall be included |
| 16 | * in all copies or substantial portions of the Software. |
Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 17 | * |
Keith Whitwell | 23caf20 | 2000-11-16 21:05:34 +0000 | [diff] [blame] | 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 | |
Brian Paul | 5a9026c | 2000-11-17 21:01:25 +0000 | [diff] [blame] | 30 | #include "config.h" |
Keith Whitwell | 4eebc90 | 2001-02-20 18:28:52 +0000 | [diff] [blame] | 31 | #include "mtypes.h" /* hack for GLchan */ |
Brian Paul | 5a9026c | 2000-11-17 21:01:25 +0000 | [diff] [blame] | 32 | |
Keith Whitwell | 23caf20 | 2000-11-16 21:05:34 +0000 | [diff] [blame] | 33 | |
Keith Whitwell | 23caf20 | 2000-11-16 21:05:34 +0000 | [diff] [blame] | 34 | |
Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 35 | extern void _math_trans_1f(GLfloat *to, |
| 36 | CONST void *ptr, |
| 37 | GLuint stride, |
| 38 | GLenum type, |
| 39 | GLuint start, |
| 40 | GLuint n ); |
Keith Whitwell | 23caf20 | 2000-11-16 21:05:34 +0000 | [diff] [blame] | 41 | |
Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 42 | extern void _math_trans_1ui(GLuint *to, |
| 43 | CONST void *ptr, |
| 44 | GLuint stride, |
| 45 | GLenum type, |
| 46 | GLuint start, |
| 47 | GLuint n ); |
Keith Whitwell | 23caf20 | 2000-11-16 21:05:34 +0000 | [diff] [blame] | 48 | |
Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 49 | extern void _math_trans_1ub(GLubyte *to, |
| 50 | CONST void *ptr, |
| 51 | GLuint stride, |
| 52 | GLenum type, |
| 53 | GLuint start, |
| 54 | GLuint n ); |
Keith Whitwell | 23caf20 | 2000-11-16 21:05:34 +0000 | [diff] [blame] | 55 | |
Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 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 ); |
Keith Whitwell | 23caf20 | 2000-11-16 21:05:34 +0000 | [diff] [blame] | 63 | |
Keith Whitwell | 4eebc90 | 2001-02-20 18:28:52 +0000 | [diff] [blame] | 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 | |
Brian Paul | 74b493a | 2001-01-24 00:04:58 +0000 | [diff] [blame] | 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 | |
Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 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 ); |
Keith Whitwell | 23caf20 | 2000-11-16 21:05:34 +0000 | [diff] [blame] | 87 | |
Keith Whitwell | 12c037d | 2003-08-20 07:21:41 +0000 | [diff] [blame] | 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 | |
Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 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 ); |
Keith Whitwell | 23caf20 | 2000-11-16 21:05:34 +0000 | [diff] [blame] | 102 | |
Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 103 | extern void _math_init_translate( void ); |
Keith Whitwell | 23caf20 | 2000-11-16 21:05:34 +0000 | [diff] [blame] | 104 | |
| 105 | |
| 106 | #endif |