diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-11-22 09:29:38 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-11-22 09:34:38 -0700 |
commit | ccb1c9df002b1bf7ef69ccfa57593f5cd6b63099 (patch) | |
tree | 6a37697b72639453c97aceed0e8f21c20eb92df9 /progs/tests | |
parent | 3d51c7900105a99fc30a4318080fd4cc373c8eec (diff) |
Print point/line size range limits
Diffstat (limited to 'progs/tests')
-rw-r--r-- | progs/tests/texline.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/progs/tests/texline.c b/progs/tests/texline.c index 3d59d9ac26..d3935b94af 100644 --- a/progs/tests/texline.c +++ b/progs/tests/texline.c @@ -7,7 +7,6 @@ * September 2000 */ - #include <stdio.h> #include <stdlib.h> #include <math.h> @@ -211,7 +210,9 @@ static void SpecialKey( int key, int x, int y ) static void Init( int argc, char *argv[] ) { + GLfloat r[2]; GLuint u; + for (u = 0; u < 2; u++) { glActiveTextureARB(GL_TEXTURE0_ARB + u); glBindTexture(GL_TEXTURE_2D, 10+u); @@ -242,6 +243,15 @@ static void Init( int argc, char *argv[] ) printf("GL_VENDOR = %s\n", (char *) glGetString(GL_VENDOR)); printf("GL_EXTENSIONS = %s\n", (char *) glGetString(GL_EXTENSIONS)); } + + glGetFloatv(GL_ALIASED_POINT_SIZE_RANGE, r); + printf("Non-smooth point size range: %g .. %g\n", r[0], r[1]); + glGetFloatv(GL_POINT_SIZE_RANGE, r); + printf("Smoothed point size range: %g .. %g\n", r[0], r[1]); + glGetFloatv(GL_ALIASED_LINE_WIDTH_RANGE, r); + printf("Non-smooth line width range: %g .. %g\n", r[0], r[1]); + glGetFloatv(GL_LINE_WIDTH_RANGE, r); + printf("Smoothed line width range: %g .. %g\n", r[0], r[1]); } |