void my_display(void) { #ifdef ANTIALIASING int passes = 8; int i; #endif #ifdef BLACK_LETTERS_WHITE_BACKGROUND glClearColor(1.0, 1.0, 1.0, 0.0); #else glClearColor(0.0, 0.0, 0.0, 0.0); #endif #ifdef ANTIALIASING glClear(GL_ACCUM_BUFFER_BIT); for (i=0; i<passes; i++) { glClear(GL_COLOR_BUFFER_BIT); do_ortho(GL_TRUE, j8[i].x, j8[i].y); draw_logo(scale); glAccum(GL_ACCUM, 1.0/(GLfloat)passes); } glAccum(GL_RETURN, 1.0); glFlush(); #else glClear(GL_COLOR_BUFFER_BIT); do_ortho(GL_FALSE, 0.0, 0.0); draw_logo(scale); #endif glutSwapBuffers(); }
void my_reshape(int w, int h) { width = w; height = h; do_ortho(); }
void GLUTCALLBACK my_reshape(int w, int h) { width = w; height = h; do_ortho( ); }