+ {
+ static int frame = 0;
+ GLfloat x, y, z;
+# define SINOID(SCALE,SIZE) \
+ ((((1 + sin((frame * (SCALE)) / 2 * M_PI)) / 2.0) * (SIZE)) - (SIZE)/2)
+ x = SINOID(0.0071, 2.0);
+ y = SINOID(0.0053, 2.0);
+ z = SINOID(0.0037, 4.0);
+ frame++;
+ glTranslatef(x, y, z);
+ }