summaryrefslogtreecommitdiff
path: root/progs/tests
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-05-19 16:48:42 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-05-19 16:48:42 +0000
commit4e470db0b94a69d149d54381a7d4785da7c9f73b (patch)
tree0c5ce93ce3de894e5a0608c3162d08283d879128 /progs/tests
parent5ec34f0ff96d5104f30b63a66ab7ee55a5f7250f (diff)
print 2D vs 3D in window
Diffstat (limited to 'progs/tests')
-rw-r--r--progs/tests/packedpixels.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/progs/tests/packedpixels.c b/progs/tests/packedpixels.c
index 94f0a887c46..67ffe088259 100644
--- a/progs/tests/packedpixels.c
+++ b/progs/tests/packedpixels.c
@@ -256,6 +256,15 @@ Draw(void)
PrintString(s);
glPopMatrix();
+ glPushMatrix();
+ glTranslatef(2, (i + 2) * (h + 2), 0);
+ glRasterPos2i(8, 6);
+ if (Test3D)
+ PrintString("Target [2/3]: GL_TEXTURE_3D");
+ else
+ PrintString("Target [2/3]: GL_TEXTURE_2D");
+ glPopMatrix();
+
glutSwapBuffers();
}
@@ -291,11 +300,9 @@ Key(unsigned char key, int x, int y)
break;
case '2':
Test3D = GL_FALSE;
- printf("Using 2D textures\n");
break;
case '3':
Test3D = GL_TRUE;
- printf("Using 3D textures\n");
break;
case 27:
exit(0);