diff options
author | Brian Paul <[email protected]> | 2004-04-18 20:13:21 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2004-04-18 20:13:21 +0000 |
commit | 51060afb4e252ecf813134659c45f15e07ccd532 (patch) | |
tree | 54c1ed7746491f96a29376e3e42efbab71485d2c | |
parent | d8b82147c3cb17a06bf41e97141b8427b4580459 (diff) |
hack to use glTexCoord4f and Q variable to test projective texcoords
-rw-r--r-- | progs/tests/arbfptexture.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/progs/tests/arbfptexture.c b/progs/tests/arbfptexture.c index cee8bfa659a..a854908c311 100644 --- a/progs/tests/arbfptexture.c +++ b/progs/tests/arbfptexture.c @@ -26,10 +26,11 @@ static void Display( void ) glRotatef(Zrot, 0.0, 0.0, 1.0); glBegin(GL_POLYGON); - glColor4f(1.0, 1.0, 1.0, 1); glTexCoord2f(0, 0); glVertex2f(-1, -1); - glColor4f(0.2, 0.2, 1.0, 1); glTexCoord2f(1, 0); glVertex2f( 1, -1); - glColor4f(0.2, 1.0, 0.2, 1); glTexCoord2f(1, 1); glVertex2f( 1, 1); - glColor4f(1.0, 0.2, 0.2, 1); glTexCoord2f(0, 1); glVertex2f(-1, 1); +#define Q 2 + glColor4f(1.0, 1.0, 1.0, 1); glTexCoord4f(0, 0, 0, Q); glVertex2f(-1, -1); + glColor4f(0.2, 0.2, 1.0, 1); glTexCoord4f(1, 0, 0, Q); glVertex2f( 1, -1); + glColor4f(0.2, 1.0, 0.2, 1); glTexCoord4f(1, 1, 0, Q); glVertex2f( 1, 1); + glColor4f(1.0, 0.2, 0.2, 1); glTexCoord4f(0, 1, 0, Q); glVertex2f(-1, 1); glEnd(); glPopMatrix(); |