/* glblur --- radial blur using GL textures
- * Copyright (c) 2002-2004 Jamie Zawinski <jwz@jwz.org>
+ * Copyright (c) 2002-2011 Jamie Zawinski <jwz@jwz.org>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
#define DEF_SPIN "XYZ"
#define DEF_WANDER "True"
-#define DEF_BLURSIZE "15"
+#define DEF_BLUR_SIZE "15"
typedef struct metaball metaball;
static argtype vars[] = {
{&do_spin, "spin", "Spin", DEF_SPIN, t_String},
{&do_wander, "wander", "Wander", DEF_WANDER, t_Bool},
- {&blursize, "blurSize","BlurSize", DEF_BLURSIZE, t_Int},
+ {&blursize, "blurSize","BlurSize", DEF_BLUR_SIZE, t_Int},
};
ENTRYPOINT ModeSpecOpt glblur_opts = {countof(opts), opts, countof(vars), vars, NULL};
GLfloat inc = 0.02 * (25.0 / times);
GLfloat spost = 0; /* starting texture coordinate offset */
- GLfloat alpha_inc = 0.9 / times; /* transparency fade factor */
+ GLfloat alpha_inc; /* transparency fade factor */
GLfloat alpha = 0.2; /* initial transparency */
glDisable (GL_TEXTURE_GEN_S);
}
else if (event->xany.type == ButtonPress &&
(event->xbutton.button == Button4 ||
- event->xbutton.button == Button5))
+ event->xbutton.button == Button5 ||
+ event->xbutton.button == Button6 ||
+ event->xbutton.button == Button7))
{
gltrackball_mousewheel (bp->trackball, event->xbutton.button, 10,
!!event->xbutton.state);
bp->glx_context = init_GL(mi);
reshape_glblur (mi, MI_WIDTH(mi), MI_HEIGHT(mi));
+ clear_gl_error(); /* WTF? sometimes "invalid op" from glViewport! */
if (!wire)
{