static void game_draw_swchs(struct s_rend *rend, const struct s_vary *vary) { int xi; for (xi = 0; xi < vary->xc; xi++) { struct v_swch *xp = vary->xv + xi; if (xp->base->i) continue; glPushMatrix(); { glTranslatef(xp->base->p[0], xp->base->p[1], xp->base->p[2]); glScalef(xp->base->r, 1.0f, xp->base->r); swch_draw(rend, xp->f, xp->e); } glPopMatrix(); } }
static void game_draw_swchs(const struct s_file *fp) { int xi; for (xi = 0; xi < fp->xc; xi++) { glPushMatrix(); { glTranslatef(fp->xv[xi].p[0], fp->xv[xi].p[1], fp->xv[xi].p[2]); glScalef(fp->xv[xi].r, 1.f, fp->xv[xi].r); swch_draw(fp->xv[xi].f); } glPopMatrix(); } }