error funcion glutMouseFunc
Publicado por olga (5 intervenciones) el 24/01/2005 17:17:25
hola tengo el siguiente codigo:
void CGlView::onMouse(int button, int state, int x, int y)
{
if((button== GLUT_LEFT_BUTTON) & (state== GLUT_DOWN))
{
x0=x;y0=y;
}
}
y depues la llamada a :
glutMouseFunc(onMouse);
Cuando compilo me da el siguiente error alguien sabe pq?
error C2664: 'glutMouseFunc' : cannot convert parameter 1 from 'void (int,int,int,int)' to 'void (__cdecl *)(int,int,int,int)'
None of the functions with this name in scope match the target type
void CGlView::onMouse(int button, int state, int x, int y)
{
if((button== GLUT_LEFT_BUTTON) & (state== GLUT_DOWN))
{
x0=x;y0=y;
}
}
y depues la llamada a :
glutMouseFunc(onMouse);
Cuando compilo me da el siguiente error alguien sabe pq?
error C2664: 'glutMouseFunc' : cannot convert parameter 1 from 'void (int,int,int,int)' to 'void (__cdecl *)(int,int,int,int)'
None of the functions with this name in scope match the target type
Valora esta pregunta


0