Pages

Wednesday, March 2, 2011

OpenGL - Between Green And Blue

/**
 * This function must be called by glutMotionFunc(motion)
 */

void motion(int x, int y){
    float xx  = (x/400.00);
    float yy = (y/300.00);
    glClearColor(0.0, xx, yy, 1.0);
    glutPostRedisplay();
}

No comments:

Post a Comment