diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2002-12-03 03:13:17 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2002-12-03 03:13:17 +0000 |
commit | 66fa33e5767ff4fb1f6e689cebe8963083bf29ad (patch) | |
tree | 6c35217427c429b04ac2b2b92b46d19d4af0e7b5 /progs/demos/pointblast.c | |
parent | 2a7243481a40dee437d4a95ac39b84e550aa98f6 (diff) |
updated to use ARB extensions
Diffstat (limited to 'progs/demos/pointblast.c')
-rw-r--r-- | progs/demos/pointblast.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/progs/demos/pointblast.c b/progs/demos/pointblast.c index 29f977eff1..72e51bccae 100644 --- a/progs/demos/pointblast.c +++ b/progs/demos/pointblast.c @@ -18,7 +18,7 @@ #ifdef _WIN32 #include <windows.h> #endif -#define GL_GLEXT_LEGACY +#define GL_GLEXT_PROTOTYPES #include <GL/glut.h> /* Some <math.h> files do not define M_PI... */ @@ -264,15 +264,15 @@ menu(int option) case 0: makePointList(); break; -#if GL_EXT_point_parameters +#if GL_ARB_point_parameters case 1: - glPointParameterfvEXT(GL_DISTANCE_ATTENUATION_EXT, constant); + glPointParameterfvARB(GL_POINT_DISTANCE_ATTENUATION_ARB, constant); break; case 2: - glPointParameterfvEXT(GL_DISTANCE_ATTENUATION_EXT, linear); + glPointParameterfvARB(GL_POINT_DISTANCE_ATTENUATION_ARB, linear); break; case 3: - glPointParameterfvEXT(GL_DISTANCE_ATTENUATION_EXT, theQuad); + glPointParameterfvARB(GL_POINT_DISTANCE_ATTENUATION_ARB, theQuad); break; #endif case 4: @@ -281,12 +281,12 @@ menu(int option) case 5: blend = 0; break; -#if GL_EXT_point_parameters +#if GL_ARB_point_parameters case 6: - glPointParameterfEXT(GL_POINT_FADE_THRESHOLD_SIZE_EXT, 1.0); + glPointParameterfARB(GL_POINT_FADE_THRESHOLD_SIZE_ARB, 1.0); break; case 7: - glPointParameterfEXT(GL_POINT_FADE_THRESHOLD_SIZE_EXT, 10.0); + glPointParameterfARB(GL_POINT_FADE_THRESHOLD_SIZE_ARB, 10.0); break; #endif case 8: @@ -468,8 +468,8 @@ main(int argc, char **argv) glEnable(GL_POINT_SMOOTH); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glPointSize(8.0); -#if GL_EXT_point_parameters - glPointParameterfvEXT(GL_DISTANCE_ATTENUATION_EXT, theQuad); +#if GL_ARB_point_parameters + glPointParameterfvARB(GL_POINT_DISTANCE_ATTENUATION_ARB, theQuad); #endif glMatrixMode(GL_PROJECTION); gluPerspective( /* field of view in degree */ 40.0, |