projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ec34f0
)
print 2D vs 3D in window
author
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 19 May 2006 16:48:42 +0000
(16:48 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 19 May 2006 16:48:42 +0000
(16:48 +0000)
progs/tests/packedpixels.c
patch
|
blob
|
history
diff --git
a/progs/tests/packedpixels.c
b/progs/tests/packedpixels.c
index 94f0a887c46331d041230e502d4c58bf9a75d067..67ffe0882590131cc1d9ad1b1aef527838d35870 100644
(file)
--- 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);