From a9ea1628da5f17274cd7ee023f438046dc992073 Mon Sep 17 00:00:00 2001 From: Daniel Borca Date: Mon, 13 Sep 2004 08:47:01 +0000 Subject: changes towards GL_ARB_point_sprite (two-zero) --- progs/demos/spriteblast.c | 53 +++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 49 insertions(+), 4 deletions(-) (limited to 'progs/demos/spriteblast.c') diff --git a/progs/demos/spriteblast.c b/progs/demos/spriteblast.c index f1eee69724..4e1d86cdd0 100644 --- a/progs/demos/spriteblast.c +++ b/progs/demos/spriteblast.c @@ -56,7 +56,7 @@ static GLfloat pointTime[MAX_POINTS]; static GLfloat pointVelocity[MAX_POINTS][2]; static GLfloat pointDirection[MAX_POINTS][2]; static int colorList[MAX_POINTS]; -static int animate = 1, motion = 0; +static int animate = 1, motion = 0, org = 0, sprite = 1, smooth = 1; static GLfloat colorSet[][4] = { /* Shades of red. */ @@ -240,17 +240,19 @@ redraw(void) if (blend) glEnable(GL_BLEND); - glEnable(GL_TEXTURE_2D); + if (sprite) { + glEnable(GL_TEXTURE_2D); #ifdef GL_ARB_point_sprite - glEnable(GL_POINT_SPRITE_ARB); + glEnable(GL_POINT_SPRITE_ARB); #endif + } glColor3f(1,1,1); glBegin(GL_POINTS); for (i=0; i