From 733a4b602bbbfda83ee03b7ae4f3737bbe659034 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 2 Feb 2002 17:24:11 +0000 Subject: sw_span can now hold x/y arrays of fragment positions - getting ready to ditch the pb (pixel buffer) code. Converted point drawing, bitmaps and aa lines to use new span functions. --- src/mesa/swrast/s_masking.h | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'src/mesa/swrast/s_masking.h') diff --git a/src/mesa/swrast/s_masking.h b/src/mesa/swrast/s_masking.h index 4f324aa60a4..3d4aaaa2be1 100644 --- a/src/mesa/swrast/s_masking.h +++ b/src/mesa/swrast/s_masking.h @@ -1,10 +1,10 @@ -/* $Id: s_masking.h,v 1.3 2001/03/12 00:48:42 gareth Exp $ */ +/* $Id: s_masking.h,v 1.4 2002/02/02 17:24:11 brianp Exp $ */ /* * Mesa 3-D graphics library - * Version: 3.5 + * Version: 4.1 * - * Copyright (C) 1999-2001 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2002 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"), @@ -37,11 +37,14 @@ * Implement glColorMask for a span of RGBA pixels. */ extern void -_mesa_mask_rgba_span( GLcontext *ctx, - GLuint n, GLint x, GLint y, +_mesa_mask_rgba_span( GLcontext *ctx, const struct sw_span *span, GLchan rgba[][4] ); +extern void +_mesa_mask_rgba_array( GLcontext *ctx, GLuint n, GLint x, GLint y, + GLchan rgba[][4] ); + /* * Implement glColorMask for an array of RGBA pixels. @@ -57,8 +60,17 @@ _mesa_mask_rgba_pixels( GLcontext *ctx, * Implement glIndexMask for a span of CI pixels. */ extern void -_mesa_mask_index_span( GLcontext *ctx, - GLuint n, GLint x, GLint y, GLuint index[] ); +_mesa_mask_index_span( GLcontext *ctx, const struct sw_span *span, + GLuint index[] ); + + + +/* + * Implement glIndexMask for a span of CI pixels. + */ +extern void +_mesa_mask_index_array( GLcontext *ctx, + GLuint n, GLint x, GLint y, GLuint index[] ); -- cgit v1.2.3