diff options
author | Brian <[email protected]> | 2007-08-13 13:57:31 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-08-13 14:00:03 -0600 |
commit | b7693ee5594e13f56a83230ce6ca61f23f1b5343 (patch) | |
tree | abb464cde702532c6c75cb5cc4ef243a2853a710 /progs/trivial | |
parent | 21b9b8b74ec0975296d22493254875c0deb7b6da (diff) |
Draw white square in lower-left corner to test orientation
Diffstat (limited to 'progs/trivial')
-rw-r--r-- | progs/trivial/readpixels.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/progs/trivial/readpixels.c b/progs/trivial/readpixels.c index b1f04f81d97..65fb81ed481 100644 --- a/progs/trivial/readpixels.c +++ b/progs/trivial/readpixels.c @@ -57,6 +57,14 @@ static void Draw(void) glVertex3f( 0.0, 0.9, -30.0); glEnd(); + glBegin(GL_QUADS); + glColor3f(1, 1, 1); + glVertex2f(-1.0, -1.0); + glVertex2f(-0.9, -1.0); + glVertex2f(-0.9, -0.9); + glVertex2f(-1.0, -0.9); + glEnd(); + glReadPixels(0, 0, Width, Height, GL_RGBA, GL_FLOAT, image); printf("Pixel(0,0) = %f, %f, %f, %f\n", image[0], image[1], image[2], image[3]); |