summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2001-05-31 23:03:05 +0000
committerBrian Paul <[email protected]>2001-05-31 23:03:05 +0000
commit21f80baa35dca54394f100d2655d28eec10cca0a (patch)
tree169d1e1449c8b6f83dd12b69f822ef3178185ce4
parente715c4a62d57eacb4b5b3b94276f251b7a4e5d22 (diff)
swapped in/out arguments to interp_func. Improved comments
-rw-r--r--src/mesa/tnl/t_context.h22
1 files changed, 17 insertions, 5 deletions
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 <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 */
line_func LineFunc;
triangle_func TriangleFunc;