Hi,
with the code below, that i copy from the first chapter of an openGL tutorial, i recieve this error message:
error C2664: ‘glutDisplayFunc’: cannot convert parameter 1 from ‘void (void)’ to ‘void(__cdecl *)(void)’
#include <GL/glut.h>
#define ANCHO 640
#define ALTO 400
void CALLBACK display_cb (void)
{
glClear (GL_COLOR_BUFFER_BIT);
glFlush();
}
void inicializacion (void)
{
glClearColor (1.0, 1.0, 1.0, 0.0);
glShadeModel (GL_FLAT);
}
int
main (int argc, char** argv) {
glutInit (&argc, argv);
glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB);
glutInitWindowSize (ANCHO, ALTO);
glutCreateWindow (“Primer programa OpenGL”);
glutDisplayFunc (display_cb);
inicializacion();
glutMainLoop();
return 0;
}