From: Brian Paul Date: Thu, 31 May 2001 23:03:05 +0000 (+0000) Subject: swapped in/out arguments to interp_func. Improved comments X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=21f80baa35dca54394f100d2655d28eec10cca0a;p=mesa.git swapped in/out arguments to interp_func. Improved comments --- diff --git a/src/mesa/tnl/t_context.h b/src/mesa/tnl/t_context.h index e419e0caffd..91fd42c46c7 100644 --- a/src/mesa/tnl/t_context.h +++ b/src/mesa/tnl/t_context.h @@ -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 @@ -371,7 +371,7 @@ typedef void (*quad_func)( GLcontext *ctx, GLuint v1, GLuint v2, typedef void (*render_func)( GLcontext *ctx, GLuint start, GLuint count, GLuint flags ); 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 ); typedef void (*copy_pv_func)( GLcontext *ctx, GLuint dst, GLuint src ); @@ -405,13 +405,25 @@ struct tnl_device_driver { */ interp_func RenderInterp; + /* The interp function is called by the clipping routines when we need + * to generate an interpolated vertex. All pertinant vertex ancilliary + * data should be computed by interpolating between the 'in' and 'out' + * vertices. + */ + 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 ); - void (*RenderClippedLine)( GLcontext *ctx, GLuint v0, GLuint v1 ); - /* Functions to interpolate between prebuilt vertices, copy flat-shade - * provoking color, and to render clipped primitives. + /* Render a polygon with vertices whose indexes are in the + * 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 */ line_func LineFunc; triangle_func TriangleFunc;