[3597] | 1 | /* $Id: vertices.h,v 1.3 2000-05-23 20:35:00 jeroen Exp $ */
|
---|
[2938] | 2 |
|
---|
| 3 | /*
|
---|
| 4 | * Mesa 3-D graphics library
|
---|
[3597] | 5 | * Version: 3.3
|
---|
[2938] | 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 |
|
---|
[3597] | 31 | #ifdef USE_X86_ASM
|
---|
| 32 | #define _PROJAPI _ASMAPI
|
---|
| 33 | #define _PROJAPIP _ASMAPIP
|
---|
| 34 | #else
|
---|
| 35 | #define _PROJAPI
|
---|
| 36 | #define _PROJAPIP *
|
---|
| 37 | #endif
|
---|
[2938] | 38 |
|
---|
[3597] | 39 | typedef void (_PROJAPIP gl_transform_func)( GLfloat *first_vert,
|
---|
[2962] | 40 | const GLfloat *m,
|
---|
| 41 | const GLfloat *src,
|
---|
| 42 | GLuint src_stride,
|
---|
| 43 | GLuint count );
|
---|
[2938] | 44 |
|
---|
[3597] | 45 | typedef void (_PROJAPIP gl_cliptest_func)( GLfloat *first_vert,
|
---|
| 46 | GLfloat *last_vert, /* use count instead?*/
|
---|
[2962] | 47 | GLubyte *or_mask,
|
---|
| 48 | GLubyte *and_mask,
|
---|
| 49 | GLubyte *clip_mask );
|
---|
[2938] | 50 |
|
---|
[3597] | 51 | typedef void (_PROJAPIP gl_project_clipped_func)( GLfloat *first,
|
---|
| 52 | GLfloat *last,
|
---|
| 53 | const GLfloat *m,
|
---|
| 54 | GLuint stride,
|
---|
| 55 | const GLubyte *clipmask );
|
---|
[2938] | 56 |
|
---|
[3597] | 57 | typedef void (_PROJAPIP gl_project_func)( GLfloat *first,
|
---|
| 58 | GLfloat *last,
|
---|
| 59 | const GLfloat *m,
|
---|
| 60 | GLuint stride );
|
---|
[2938] | 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;
|
---|
[3597] | 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;
|
---|
[2938] | 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,
|
---|
[3597] | 76 | GLfloat *result,
|
---|
| 77 | const GLfloat *in,
|
---|
| 78 | const GLfloat *out );
|
---|
[2938] | 79 |
|
---|
[3597] | 80 |
|
---|
[2938] | 81 | #endif
|
---|