void printFour(int position) { clearLcd(); drawFirstLeftColumn(); drawFirstRightColumn(); drawMiddleLine(); drawLastRightColumn(); printLcd(position); }
void render() { // Clear frame buffer and depth buffer glClear(GL_COLOR_BUFFER_BIT); glLoadIdentity(); glColor3f(1.0,1.0,1.0); setOrtho(); glPushMatrix(); drawMiddleLine(); drawPaddle(100,startX); drawPaddle(1280-100,startY); drawBall(ballX,ballY); glPopMatrix(); glFlush(); glutSwapBuffers(); }