projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1a2393
)
replace PI with pi
author
Brian Paul
<brian.paul@tungstengraphics.com>
Mon, 13 Aug 2001 22:36:31 +0000
(22:36 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Mon, 13 Aug 2001 22:36:31 +0000
(22:36 +0000)
progs/demos/pixeltex.c
patch
|
blob
|
history
diff --git
a/progs/demos/pixeltex.c
b/progs/demos/pixeltex.c
index 96e46ef9294e11b22c32446f6a31bb6826f68020..1b044445a387f3a3be16c545500676c8b17bf55b 100644
(file)
--- a/
progs/demos/pixeltex.c
+++ b/
progs/demos/pixeltex.c
@@
-127,12
+127,12
@@
static void Idle(void)
static GLubyte warp(GLfloat s, int frame)
{
- static const GLfloat
PI
= 3.14159265;
+ static const GLfloat
pi
= 3.14159265;
static int halfFrame = FRAMES / 2;
GLfloat y, weight, v;
if (frame >= halfFrame)
frame = halfFrame - (frame - halfFrame);
- y = sin(s *
PI
);
+ y = sin(s *
pi
);
weight = (float) frame / (FRAMES-1);
v = y * (0.8 * weight + 0.2);
return (GLint) (v * 255.0F);