projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2577bb
)
better triangle Z coords
author
Brian
<brian.paul@tungstengraphics.com>
Mon, 25 Jun 2007 15:41:49 +0000
(09:41 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Mon, 25 Jun 2007 15:41:49 +0000
(09:41 -0600)
progs/trivial/tri-z.c
patch
|
blob
|
history
diff --git
a/progs/trivial/tri-z.c
b/progs/trivial/tri-z.c
index cda62ad675b91d21f753df9237cff73178728be8..ae25900a3588b203e857b6178ebc9c986a177862 100644
(file)
--- a/
progs/trivial/tri-z.c
+++ b/
progs/trivial/tri-z.c
@@
-51,9
+51,9
@@
static void drawLeftTriangle(void)
/* draw yellow triangle on LHS of screen */
glBegin (GL_TRIANGLES);
glColor4f(1.0, 1.0, 0.0, 0.75);
- glVertex3f(0.1, 0.9,
0
.0);
- glVertex3f(0.1, 0.1,
0
.0);
- glVertex3f(0.
7, 0.5, 0
.0);
+ glVertex3f(0.1, 0.9,
-1
.0);
+ glVertex3f(0.1, 0.1,
-1
.0);
+ glVertex3f(0.
8, 0.5, 1
.0);
glEnd();
}
@@
-63,7
+63,7
@@
static void drawRightTriangle(void)
glBegin (GL_TRIANGLES);
glColor4f(0.0, 1.0, 1.0, 0.75);
glVertex3f(0.9, 0.9, 0.0);
- glVertex3f(0.
3
, 0.5, 0.0);
+ glVertex3f(0.
2
, 0.5, 0.0);
glVertex3f(0.9, 0.1, 0.0);
glEnd();
}