Pages

Wednesday, March 2, 2011

OpenGL - Between Red and Green

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

No comments:

Post a Comment