Código
//***********************************************************************// //***********************************************************************// int coordenada__x(int h) { cout<<"cheka men "<<" "<<h<<" "<<" "<<endl; return h; } //***********************************************************************// //***********************************************************************// int coordenada__y(int k) { cout<<"cheka men "<<" "<<k<<" "<<" "<<endl; return k; } //***********************************************************************// //***********************************************************************// void ControlRaton(int button, int state, int x, int y) { float t1=0,t2=0,b1=0,b2=0; int b3=0,b4=0; if(button==GLUT_LEFT_BUTTON && state==GLUT_DOWN) { printf("Pulso el boton Izquierdo del raton...\n"); cout<<x<<" "<<"<->"<<" "<<y<<endl; printf("BiNGO...\n"); t1=x/10.0; t2=y/10.0; b1=round(t1)*10; b2=round(t2)*10; b3=b1; b4=b2; coordenada__x(b3); coordenada__y(b4); } } //***********************************************************************// //***********************************************************************//
para colocarla aka que me de esas coordenads para pode modificarla que parametros tengo que pasar alas funciones gracias ´por la ayuda ......
Código
void passivemotion( int x, int y ) { cout<<" "<<x<<" "<<y<<endl; m=coordenada__x; n=coordenada__y; if(x%10 ==0&&y%10==0) { bres(m,n, x, y); cout<<"mira xD"<<x<<" "<<y<<" "<<endl; } }