static void game_draw_jumps(const struct s_file *fp) { int ji; for (ji = 0; ji < fp->jc; ji++) { glPushMatrix(); { glTranslatef(fp->jv[ji].p[0], fp->jv[ji].p[1], fp->jv[ji].p[2]); glScalef(fp->jv[ji].r, 1.f, fp->jv[ji].r); jump_draw(!jump_e); } glPopMatrix(); } }
static void game_draw_jumps(struct s_rend *rend, const struct s_base *fp) { float t = 0.001f * SDL_GetTicks(); int ji; for (ji = 0; ji < fp->jc; ji++) { glPushMatrix(); { glTranslatef(fp->jv[ji].p[0], fp->jv[ji].p[1], fp->jv[ji].p[2]); glScalef(fp->jv[ji].r, 1.f, fp->jv[ji].r); jump_draw(rend, t, !jump_e); } glPopMatrix(); } }
static void game_draw_jumps(struct s_rend *rend, const struct game_draw *gd, const float *M, float t) { const struct s_base *base = gd->vary.base; int ji; for (ji = 0; ji < base->jc; ji++) { glPushMatrix(); { glTranslatef(base->jv[ji].p[0], base->jv[ji].p[1], base->jv[ji].p[2]); glScalef(base->jv[ji].r, 1.0f, base->jv[ji].r); jump_draw(rend, t, !gd->jump_e); } glPopMatrix(); } }