From 46b0988c673b28e072fd0cbf477632a9ab6f9f18 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Fri, 16 Feb 2001 18:14:41 +0000 Subject: Allow swrast to cope (fairly) cleanly with GL_SEPERATE_SPECULAR when texturing is not enabled, and without requiring the two colors be added externally. As a part of this, collapsed the decomposition of quads into triangles inside swrast to be hardwired into _swrast_Quad; removed s_quads.[ch]. Removed checks on texture state from t_vb_light.c, which was previously required by swrast. Moved the t_dd_ templates to a new directory. --- src/mesa/swrast/s_triangle.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/mesa/swrast/s_triangle.h') diff --git a/src/mesa/swrast/s_triangle.h b/src/mesa/swrast/s_triangle.h index c0064e8d46..318b6a6671 100644 --- a/src/mesa/swrast/s_triangle.h +++ b/src/mesa/swrast/s_triangle.h @@ -1,4 +1,4 @@ -/* $Id: s_triangle.h,v 1.4 2000/11/22 07:32:18 joukj Exp $ */ +/* $Id: s_triangle.h,v 1.5 2001/02/16 18:14:41 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -45,6 +45,12 @@ GLboolean gl_cull_triangle( GLcontext *ctx, void _swrast_choose_triangle( GLcontext *ctx ); +void +_swrast_add_spec_terms_triangle( GLcontext *ctx, + const SWvertex *v0, + const SWvertex *v1, + const SWvertex *v2 ); + #endif -- cgit v1.2.3