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();
float yy = (y/300.00); // must be float divider
glClearColor(xx, yy, 0.0, 1.0);
glutPostRedisplay();
}
No comments:
Post a Comment