diff options
Diffstat (limited to 'src/mesa/math/m_xform.h')
-rw-r--r-- | src/mesa/math/m_xform.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/mesa/math/m_xform.h b/src/mesa/math/m_xform.h index d8b019cc548..3e24ceac4a8 100644 --- a/src/mesa/math/m_xform.h +++ b/src/mesa/math/m_xform.h @@ -1,21 +1,21 @@ -/* $Id: m_xform.h,v 1.7 2001/03/03 20:57:00 brianp Exp $ */ +/* $Id: m_xform.h,v 1.8 2001/03/12 00:48:41 gareth Exp $ */ /* * Mesa 3-D graphics library - * Version: 3.3 - * - * Copyright (C) 1999 Brian Paul All Rights Reserved. - * + * Version: 3.5 + * + * Copyright (C) 1999-2001 Brian Paul All Rights Reserved. + * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: - * + * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL @@ -78,7 +78,7 @@ extern void _mesa_transform_vector( GLfloat u[4], CONST GLfloat m[16] ); -extern void +extern void _math_init_transformation( void ); @@ -94,7 +94,7 @@ _math_init_transformation( void ); * * There are two cases where we wouldn't want to do the divide in cliptest: * - When we aren't clipping. We still might want to cull backfaces - * so the divide should be done elsewhere. This currently never + * so the divide should be done elsewhere. This currently never * happens. * * - When culling isn't likely to help us, such as when the GL culling @@ -105,17 +105,17 @@ _math_init_transformation( void ); * application wouldn't turn on culling in such cases. * * We supply a buffer to hold the [x/w,y/w,z/w,1/w] values which - * are the result of the projection. This is only used in the + * are the result of the projection. This is only used in the * 4-vector case - in other cases, we just use the clip coordinates * as the projected coordinates - they are identical. - * + * * This is doubly convenient because it means the Win[] array is now * of the same stride as all the others, so I can now turn map_vertices * into a straight-forward matrix transformation, with asm acceleration - * automatically available. + * automatically available. */ -/* Vertex buffer clipping flags +/* Vertex buffer clipping flags */ #define CLIP_RIGHT_SHIFT 0 #define CLIP_LEFT_SHIFT 1 @@ -135,19 +135,19 @@ _math_init_transformation( void ); typedef GLvector4f * (_XFORMAPIP clip_func)( GLvector4f *vClip, - GLvector4f *vProj, + GLvector4f *vProj, GLubyte clipMask[], - GLubyte *orMask, + GLubyte *orMask, GLubyte *andMask ); -typedef void (*dotprod_func)( GLfloat *out, +typedef void (*dotprod_func)( GLfloat *out, GLuint out_stride, - CONST GLvector4f *coord_vec, - CONST GLfloat plane[4], + CONST GLvector4f *coord_vec, + CONST GLfloat plane[4], CONST GLubyte mask[]); -typedef void (*vec_copy_func)( GLvector4f *to, - CONST GLvector4f *from, +typedef void (*vec_copy_func)( GLvector4f *to, + CONST GLvector4f *from, CONST GLubyte mask[]); @@ -163,7 +163,7 @@ typedef void (_NORMAPIP normal_func)( CONST GLmatrix *mat, GLvector3f *dest ); -/* Flags for selecting a normal transformation function. +/* Flags for selecting a normal transformation function. */ #define NORM_RESCALE 0x1 /* apply the scale factor */ #define NORM_NORMALIZE 0x2 /* normalize */ @@ -176,11 +176,11 @@ typedef void (_NORMAPIP normal_func)( CONST GLmatrix *mat, /* KW: New versions of the transform function allow a mask array * specifying that individual vector transform should be skipped * when the mask byte is zero. This is always present as a - * parameter, to allow a unified interface. + * parameter, to allow a unified interface. */ typedef void (_XFORMAPIP transform_func)( GLvector4f *to_vec, CONST GLfloat m[16], - CONST GLvector4f *from_vec, + CONST GLvector4f *from_vec, CONST GLubyte *clipmask, CONST GLubyte flag ); |