void Display(void) { glClear(GL_COLOR_BUFFER_BIT); switch(prevKey) { case '1': Display1(); break; case '2': Display2(); break; default: break; } glFlush(); }
void Display(void) { switch(prevKey) { case '0': glClear(GL_COLOR_BUFFER_BIT); nivel = 0; fprintf(stderr, "nivel = %d\n", nivel); break; case '1': glClear(GL_COLOR_BUFFER_BIT); Display1(); break; case '2': glClear(GL_COLOR_BUFFER_BIT); Display2(); break; case '3': glClear(GL_COLOR_BUFFER_BIT); Display3(); break; case '4': glClear(GL_COLOR_BUFFER_BIT); Display4(); break; case '5': glClear(GL_COLOR_BUFFER_BIT); Display5(); break; case '6': glClear(GL_COLOR_BUFFER_BIT); Display6(); break; case '7': glClear(GL_COLOR_BUFFER_BIT); Display7(); break; case '8': glClear(GL_COLOR_BUFFER_BIT); Display8(); break; default: break; } glFlush(); }
void Display(void) { printf("Call Display\n"); // sterge buffer-ul indicat glClear(GL_COLOR_BUFFER_BIT); switch (prevKey) { case '1': Display1(); break; case '2': Display2(); break; case '3': Display3(); break; case '4': Display4(); break; case '5': Display5(); break; case '6': Display6(); break; case '7': Display7(); break; case '8': Display8(); break; default: break; } // forteaza redesenarea imaginii glFlush(); }