swapped in/out arguments to interp_func. Improved comments
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
/* $Id: t_context.h,v 1.25 2001/05/16 09:28:32 keithw Exp $ */
|
/* $Id: t_context.h,v 1.26 2001/05/31 23:03:05 brianp Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Mesa 3-D graphics library
|
* Mesa 3-D graphics library
|
||||||
@@ -371,7 +371,7 @@ typedef void (*quad_func)( GLcontext *ctx, GLuint v1, GLuint v2,
|
|||||||
typedef void (*render_func)( GLcontext *ctx, GLuint start, GLuint count,
|
typedef void (*render_func)( GLcontext *ctx, GLuint start, GLuint count,
|
||||||
GLuint flags );
|
GLuint flags );
|
||||||
typedef void (*interp_func)( GLcontext *ctx,
|
typedef void (*interp_func)( GLcontext *ctx,
|
||||||
GLfloat t, GLuint dst, GLuint in, GLuint out,
|
GLfloat t, GLuint dst, GLuint out, GLuint in,
|
||||||
GLboolean force_boundary );
|
GLboolean force_boundary );
|
||||||
typedef void (*copy_pv_func)( GLcontext *ctx, GLuint dst, GLuint src );
|
typedef void (*copy_pv_func)( GLcontext *ctx, GLuint dst, GLuint src );
|
||||||
|
|
||||||
@@ -405,13 +405,25 @@ struct tnl_device_driver {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
interp_func RenderInterp;
|
interp_func RenderInterp;
|
||||||
copy_pv_func RenderCopyPV;
|
/* The interp function is called by the clipping routines when we need
|
||||||
void (*RenderClippedPolygon)( GLcontext *ctx, const GLuint *elts, GLuint n );
|
* to generate an interpolated vertex. All pertinant vertex ancilliary
|
||||||
void (*RenderClippedLine)( GLcontext *ctx, GLuint v0, GLuint v1 );
|
* data should be computed by interpolating between the 'in' and 'out'
|
||||||
/* Functions to interpolate between prebuilt vertices, copy flat-shade
|
* vertices.
|
||||||
* provoking color, and to render clipped primitives.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
copy_pv_func RenderCopyPV;
|
||||||
|
/* The copy function is used to make a copy of a vertex. All pertinant
|
||||||
|
* vertex attributes should be copied.
|
||||||
|
*/
|
||||||
|
|
||||||
|
void (*RenderClippedPolygon)( GLcontext *ctx, const GLuint *elts, GLuint n );
|
||||||
|
/* Render a polygon with <n> vertices whose indexes are in the <elts>
|
||||||
|
* array.
|
||||||
|
*/
|
||||||
|
|
||||||
|
void (*RenderClippedLine)( GLcontext *ctx, GLuint v0, GLuint v1 );
|
||||||
|
/* Render a line between the two vertices given by indexes v0 and v1. */
|
||||||
|
|
||||||
points_func PointsFunc; /* must now respect vb->elts */
|
points_func PointsFunc; /* must now respect vb->elts */
|
||||||
line_func LineFunc;
|
line_func LineFunc;
|
||||||
triangle_func TriangleFunc;
|
triangle_func TriangleFunc;
|
||||||
|
Reference in New Issue
Block a user