From 1201348a337aa00a85b6bc6dec4963cfc5898e77 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 26 Jul 2005 01:04:53 +0000 Subject: improve comments about win[0..3] values (bug 2554) --- src/mesa/swrast/swrast.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/mesa') diff --git a/src/mesa/swrast/swrast.h b/src/mesa/swrast/swrast.h index 299eda5dc3..90123e5132 100644 --- a/src/mesa/swrast/swrast.h +++ b/src/mesa/swrast/swrast.h @@ -61,8 +61,11 @@ * primitives unaccelerated), hook in swrast_setup instead. */ typedef struct { - /** win[0], win[1] are the screen-coords of SWvertex. win[2] is the - * z-coord. what is win[3]? */ + /** win[0], win[1] are the screen-coords of SWvertex. + * win[2] is the z-buffer coord (if 16-bit Z buffer, in range [0,65535]). + * win[3] is 1/w where w is the clip-space W coord. This is the value + * that clip{XYZ} were multiplied by to get ndc{XYZ}. + */ GLfloat win[4]; GLfloat texcoord[MAX_TEXTURE_COORD_UNITS][4]; GLchan color[4]; -- cgit v1.2.3