summaryrefslogtreecommitdiff
path: root/src/mesa/swrast
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-07-26 01:04:53 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-07-26 01:04:53 +0000
commit1201348a337aa00a85b6bc6dec4963cfc5898e77 (patch)
tree5ec5cb98532de0ca382bd59e80ff53c453edbde8 /src/mesa/swrast
parent800c72ae61532fba4a9cada8713e60ed0d2d7347 (diff)
improve comments about win[0..3] values (bug 2554)
Diffstat (limited to 'src/mesa/swrast')
-rw-r--r--src/mesa/swrast/swrast.h7
1 files changed, 5 insertions, 2 deletions
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];