aboutsummaryrefslogtreecommitdiffstats
path: root/progs
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2001-01-23 23:44:39 +0000
committerBrian Paul <[email protected]>2001-01-23 23:44:39 +0000
commit6140a8c65fc0ee23f8370bd41d52c79a77dbb156 (patch)
treec446c7f55efc7f3d0801b0e929d747c7b0a246aa /progs
parent4e3e9ac8fb033cad54a02062d40346d6a14c4acc (diff)
minor tweaks
Diffstat (limited to 'progs')
-rw-r--r--progs/tests/texline.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/progs/tests/texline.c b/progs/tests/texline.c
index 1f5cd3f31f0..773da3c1aa6 100644
--- a/progs/tests/texline.c
+++ b/progs/tests/texline.c
@@ -1,4 +1,4 @@
-/* $Id: texline.c,v 1.1 2000/09/30 18:48:33 brianp Exp $ */
+/* $Id: texline.c,v 1.2 2001/01/23 23:44:39 brianp Exp $ */
/*
* Test textured lines.
@@ -45,11 +45,17 @@ static void Display( void )
glRotatef(Yrot, 0.0, 1.0, 0.0);
glRotatef(Zrot, 0.0, 0.0, 1.0);
- glColor3f(1, 1, 1);
+ if (Texture)
+ glColor3f(1, 1, 1);
+
glBegin(GL_LINES);
- for (t = 0.0; t <= 1.0; t += 0.0125) {
+ for (t = 0.0; t <= 1.0; t += 0.025) {
x = t * 2.0 - 1.0;
+ if (!Texture)
+ glColor3f(1, 0, 1);
glTexCoord2f(t, 0.0); glVertex2f(x, -1.0);
+ if (!Texture)
+ glColor3f(0, 1, 0);
glTexCoord2f(t, 1.0); glVertex2f(x, 1.0);
}
glEnd();