| 1 |
/* $XFree86$ */ |
| 2 |
/************************************************************************** |
| 3 |
|
| 4 |
Copyright 2002 Tungsten Graphics Inc., Cedar Park, Texas. |
| 5 |
|
| 6 |
All Rights Reserved. |
| 7 |
|
| 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 |
on the rights to use, copy, modify, merge, publish, distribute, sub |
| 12 |
license, and/or sell copies of the Software, and to permit persons to whom |
| 13 |
the Software is furnished to do so, subject to the following conditions: |
| 14 |
|
| 15 |
The above copyright notice and this permission notice (including the next |
| 16 |
paragraph) shall be included in all copies or substantial portions of the |
| 17 |
Software. |
| 18 |
|
| 19 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 20 |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 21 |
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL |
| 22 |
TUNGSTEN GRAPHICS AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, |
| 23 |
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR |
| 24 |
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE |
| 25 |
USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 26 |
|
| 27 |
**************************************************************************/ |
| 28 |
|
| 29 |
/* |
| 30 |
* Authors: |
| 31 |
* Keith Whitwell <[email protected]> |
| 32 |
* |
| 33 |
*/ |
| 34 |
|
| 35 |
#ifndef __T_VTX_API_H__ |
| 36 |
#define __T_VTX_API_H__ |
| 37 |
|
| 38 |
#include "t_context.h" |
| 39 |
|
| 40 |
#define ERROR_ATTRIB 16 |
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
/* t_vtx_api.c: |
| 45 |
*/ |
| 46 |
extern void _tnl_vtx_init( GLcontext *ctx ); |
| 47 |
extern void _tnl_vtx_destroy( GLcontext *ctx ); |
| 48 |
|
| 49 |
extern void _tnl_FlushVertices( GLcontext *ctx, GLuint flags ); |
| 50 |
extern void _tnl_flush_vtx( GLcontext *ctx ); |
| 51 |
|
| 52 |
extern void GLAPIENTRY _tnl_wrap_filled_vertex( GLcontext *ctx ); |
| 53 |
|
| 54 |
/* t_vtx_exec.c: |
| 55 |
*/ |
| 56 |
|
| 57 |
extern void _tnl_do_EvalCoord2f( GLcontext* ctx, GLfloat u, GLfloat v ); |
| 58 |
extern void _tnl_do_EvalCoord1f(GLcontext* ctx, GLfloat u); |
| 59 |
extern void _tnl_update_eval( GLcontext *ctx ); |
| 60 |
|
| 61 |
extern GLboolean *_tnl_translate_edgeflag( GLcontext *ctx, |
| 62 |
const GLfloat *data, |
| 63 |
GLuint count, |
| 64 |
GLuint stride ); |
| 65 |
|
| 66 |
extern GLboolean *_tnl_import_current_edgeflag( GLcontext *ctx, |
| 67 |
GLuint count ); |
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
/* t_vtx_generic.c: |
| 72 |
*/ |
| 73 |
extern void _tnl_generic_exec_vtxfmt_init( GLcontext *ctx ); |
| 74 |
|
| 75 |
extern void _tnl_generic_attr_table_init( tnl_attrfv_func (*tab)[4] ); |
| 76 |
|
| 77 |
/* t_vtx_x86.c: |
| 78 |
*/ |
| 79 |
extern void _tnl_InitX86Codegen( struct _tnl_dynfn_generators *gen ); |
| 80 |
|
| 81 |
extern void _tnl_x86_exec_vtxfmt_init( GLcontext *ctx ); |
| 82 |
|
| 83 |
extern void _tnl_x86choosers( tnl_attrfv_func (*choose)[4], |
| 84 |
tnl_attrfv_func (*do_choose)( GLuint attr, |
| 85 |
GLuint sz )); |
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
#endif |