mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
improve comments about win[0..3] values (bug 2554)
This commit is contained in:
parent
800c72ae61
commit
1201348a33
1 changed files with 5 additions and 2 deletions
|
|
@ -61,8 +61,11 @@
|
||||||
* primitives unaccelerated), hook in swrast_setup instead.
|
* primitives unaccelerated), hook in swrast_setup instead.
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct {
|
||||||
/** win[0], win[1] are the screen-coords of SWvertex. win[2] is the
|
/** win[0], win[1] are the screen-coords of SWvertex.
|
||||||
* z-coord. what is win[3]? */
|
* 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 win[4];
|
||||||
GLfloat texcoord[MAX_TEXTURE_COORD_UNITS][4];
|
GLfloat texcoord[MAX_TEXTURE_COORD_UNITS][4];
|
||||||
GLchan color[4];
|
GLchan color[4];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue