static void game_draw_goals(struct s_rend *rend, const struct game_draw *gd, const float *M, float t) { const struct s_base *base = gd->vary.base; if (gd->goal_e) { int zi; /* Draw the goal column. */ for (zi = 0; zi < base->zc; zi++) { glPushMatrix(); { glTranslatef(base->zv[zi].p[0], base->zv[zi].p[1], base->zv[zi].p[2]); glScalef(base->zv[zi].r, gd->goal_k, base->zv[zi].r); goal_draw(rend, t); } glPopMatrix(); } } }
static void game_draw_goals(const struct s_file *fp, float rx, float ry) { int zi; if (goal_e) for (zi = 0; zi < fp->zc; zi++) { glPushMatrix(); { glTranslatef(fp->zv[zi].p[0], fp->zv[zi].p[1], fp->zv[zi].p[2]); part_draw_goal(rx, ry, fp->zv[zi].r, goal_k); glScalef(fp->zv[zi].r, goal_k, fp->zv[zi].r); goal_draw(); } glPopMatrix(); } }