1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36:
| procedure TForm1.Schlaeger; begin glTranslatef(-30, 0, -50); glTranslated(0, s1, 0); glBegin(GL_QUADS); glColor3f(0, 1, 0); glVertex3f(-1,1,-1); glColor3f(0, 1, 0); glVertex3f(-1,-9,-1); glColor3f(0, 1, 0); glVertex3f(1,-9,-1); glColor3f(0, 1, 0); glVertex3f(1,1,-1); glEnd;
glTranslatef(60, 0, 0); glTranslated(0, s2, 0); glBegin(GL_QUADS); glColor3f(0, 1, 0); glVertex3f(-1,1,-1); glColor3f(0, 1, 0); glVertex3f(-1,-9,-1); glColor3f(0, 1, 0); glVertex3f(1,-9,-1); glColor3f(0, 1, 0); glVertex3f(1,1,-1); glEnd; end;
procedure TForm1.Ball; begin glTranslatef(-30, 0, 0); glTranslated(bx, by, 0); glBegin(GL_QUADS); glColor3f(0, 1, 0); glVertex3f(-1,1,-1); glColor3f(0, 1, 0); glVertex3f(-1,-1,-1); glColor3f(0, 1, 0); glVertex3f(1,-1,-1); glColor3f(0, 1, 0); glVertex3f(1,1,-1); glEnd; end; |