From 8d0edf015d82a705796389890f6fe9b32e19414c Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 29 Sep 2005 03:20:15 +0000 Subject: Rewrite much of the pixel zoom code. Zoomed DrawPixels of packed depth/stencil works now. --- src/mesa/swrast/s_zoom.h | 38 +++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 15 deletions(-) (limited to 'src/mesa/swrast/s_zoom.h') diff --git a/src/mesa/swrast/s_zoom.h b/src/mesa/swrast/s_zoom.h index aa9a891eb7..d10c270245 100644 --- a/src/mesa/swrast/s_zoom.h +++ b/src/mesa/swrast/s_zoom.h @@ -1,8 +1,8 @@ /* * Mesa 3-D graphics library - * Version: 5.1 + * Version: 6.5 * - * Copyright (C) 1999-2003 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2005 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"), @@ -28,27 +28,35 @@ #include "mtypes.h" #include "swrast.h" + extern void -_swrast_write_zoomed_rgba_span( GLcontext *ctx, const struct sw_span *span, - CONST GLchan rgb[][4], GLint y0, - GLint skipPixels ); +_swrast_write_zoomed_rgba_span(GLcontext *ctx, GLint imgX, GLint imgY, + const struct sw_span *span, + CONST GLchan rgb[][4]); extern void -_swrast_write_zoomed_rgb_span( GLcontext *ctx, const struct sw_span *span, - CONST GLchan rgb[][3], GLint y0, - GLint skipPixels ); +_swrast_write_zoomed_rgb_span(GLcontext *ctx, GLint imgX, GLint imgY, + const struct sw_span *span, + CONST GLchan rgb[][3]); extern void -_swrast_write_zoomed_index_span( GLcontext *ctx, const struct sw_span *span, - GLint y0, GLint skipPixels ); +_swrast_write_zoomed_index_span(GLcontext *ctx, GLint imgX, GLint imgY, + const struct sw_span *span); extern void -_swrast_write_zoomed_depth_span( GLcontext *ctx, const struct sw_span *span, - GLint y0, GLint skipPixels ); +_swrast_write_zoomed_depth_span(GLcontext *ctx, GLint imgX, GLint imgY, + const struct sw_span *span); + extern void -_swrast_write_zoomed_stencil_span( GLcontext *ctx, GLuint n, GLint x, GLint y, - const GLstencil stencil[], GLint y0, - GLint skipPixels ); +_swrast_write_zoomed_stencil_span(GLcontext *ctx, GLint imgX, GLint imgY, + GLint width, GLint spanX, GLint spanY, + const GLstencil stencil[]); + +extern void +_swrast_write_zoomed_z_span(GLcontext *ctx, GLint imgX, GLint imgY, + GLint width, GLint spanX, GLint spanY, + const GLvoid *z); + #endif -- cgit v1.2.3