};
static argtype vars[] = {
- {(caddr_t *) &do_spin, "spin", "Spin", DEF_SPIN, t_String},
- {(caddr_t *) &do_wander, "wander", "Wander", DEF_WANDER, t_Bool},
- {(caddr_t *) &blursize, "blurSize","BlurSize", DEF_BLURSIZE, t_Int},
+ {&do_spin, "spin", "Spin", DEF_SPIN, t_String},
+ {&do_wander, "wander", "Wander", DEF_WANDER, t_Bool},
+ {&blursize, "blurSize","BlurSize", DEF_BLURSIZE, t_Int},
};
ModeSpecOpt sws_opts = {countof(opts), opts, countof(vars), vars, NULL};
glGenTextures (1, &bp->texture);
glBindTexture (GL_TEXTURE_2D, bp->texture);
glTexImage2D (GL_TEXTURE_2D, 0, 4, 128, 128, 0,
- GL_RGBA, GL_UNSIGNED_BYTE, bp->tex_data);
+ GL_RGBA,
+ /* GL_UNSIGNED_BYTE, */
+ GL_UNSIGNED_INT_8_8_8_8_REV,
+ bp->tex_data);
glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
}
{
glColor4f (1, 1, 1, alpha);
glTexCoord2f (0+spost, 1-spost); glVertex2f (0, 0);
- glTexCoord2f (0+spost, 0+spost); glVertex2f (0, w);
+ glTexCoord2f (0+spost, 0+spost); glVertex2f (0, h);
glTexCoord2f (1-spost, 0+spost); glVertex2f (w, h);
glTexCoord2f (1-spost, 1-spost); glVertex2f (w, 0);
spost += inc;