| 1 | /* $Id: vertices.h,v 1.3 2000-05-23 20:35:00 jeroen Exp $ */ | 
|---|
| 2 |  | 
|---|
| 3 | /* | 
|---|
| 4 | * Mesa 3-D graphics library | 
|---|
| 5 | * Version:  3.3 | 
|---|
| 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 VERTICES_H_ | 
|---|
| 29 | #define VERTICES_H_ | 
|---|
| 30 |  | 
|---|
| 31 | #ifdef USE_X86_ASM | 
|---|
| 32 | #define _PROJAPI _ASMAPI | 
|---|
| 33 | #define _PROJAPIP _ASMAPIP | 
|---|
| 34 | #else | 
|---|
| 35 | #define _PROJAPI | 
|---|
| 36 | #define _PROJAPIP * | 
|---|
| 37 | #endif | 
|---|
| 38 |  | 
|---|
| 39 | typedef void (_PROJAPIP gl_transform_func)( GLfloat *first_vert, | 
|---|
| 40 | const GLfloat *m, | 
|---|
| 41 | const GLfloat *src, | 
|---|
| 42 | GLuint src_stride, | 
|---|
| 43 | GLuint count ); | 
|---|
| 44 |  | 
|---|
| 45 | typedef void (_PROJAPIP gl_cliptest_func)( GLfloat *first_vert, | 
|---|
| 46 | GLfloat *last_vert, /* use count instead?*/ | 
|---|
| 47 | GLubyte *or_mask, | 
|---|
| 48 | GLubyte *and_mask, | 
|---|
| 49 | GLubyte *clip_mask ); | 
|---|
| 50 |  | 
|---|
| 51 | typedef void (_PROJAPIP gl_project_clipped_func)( GLfloat *first, | 
|---|
| 52 | GLfloat *last, | 
|---|
| 53 | const GLfloat *m, | 
|---|
| 54 | GLuint stride, | 
|---|
| 55 | const GLubyte *clipmask ); | 
|---|
| 56 |  | 
|---|
| 57 | typedef void (_PROJAPIP gl_project_func)( GLfloat *first, | 
|---|
| 58 | GLfloat *last, | 
|---|
| 59 | const GLfloat *m, | 
|---|
| 60 | GLuint stride ); | 
|---|
| 61 |  | 
|---|
| 62 |  | 
|---|
| 63 | /* At the moment these are used by fastpaths in the FX and MGA drivers. | 
|---|
| 64 | */ | 
|---|
| 65 | extern gl_transform_func       gl_xform_points3_v16_general; | 
|---|
| 66 | extern gl_cliptest_func        gl_cliptest_points4_v16; | 
|---|
| 67 | extern gl_project_clipped_func gl_project_clipped_v16; | 
|---|
| 68 | extern gl_project_func         gl_project_v16; | 
|---|
| 69 |  | 
|---|
| 70 |  | 
|---|
| 71 |  | 
|---|
| 72 | extern GLenum gl_reduce_prim[]; | 
|---|
| 73 | extern void gl_init_vertices(void); | 
|---|
| 74 |  | 
|---|
| 75 | typedef void (*gl_vertex_interp_func)( GLfloat t, | 
|---|
| 76 | GLfloat *result, | 
|---|
| 77 | const GLfloat *in, | 
|---|
| 78 | const GLfloat *out ); | 
|---|
| 79 |  | 
|---|
| 80 |  | 
|---|
| 81 | #endif | 
|---|