Code Repositories
Save The Codes
Pages
Home
This Me
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment