void drawBanana(float x, float y,float z){ glPushMatrix(); glTranslated(x, y, -z); glScaled(1.5, 1.5, 1.5); banana.Draw(); glPopMatrix(); }
void drawCharacter() { glPushMatrix(); glColor3f(1,1,1); glTranslated(this->x, this->y+3.5, 0); glRotated(angleOfLooking, 0, 1, 0); //for (int i = 0; i<100000; i++); //glRotated(-1*angleOfLooking, 0, 1, 0); if (jump) { if (characterSpeed > 0) glRotated(rotate, 0, 0, 1); //glRotated(-45, 0, 0, 1); else glRotated(45, 0, 0, 1); } //if (fall) // glRotated(180, 0, 0, 1); glScalef(5, 5, 5); c.Draw(); glPopMatrix(); }