I’m facing different errors…why am I getting it?..this is the main function of my code…How can I declare it?
void main ( int argc, char **argv )
{
glutInit ( &argc, argv );
glutInitDisplayMode ( GLUT_DEPTH | GLUT_RGB | GLUT_DOUBLE);
glutInitWindowPosition (100, 100);
glutInitWindowSize( 800, 600);
glutCreateWindow( “hello world”) ;
glutDisplayFunc( renderScene );
glutIdleFunc( renderScene);
glutKeyboardFunc ( keyboardInput);
glutMainLoop();
}
ERRORS
u:\prot riangle.cpp(47) : error C2065: ‘BGL_DEPTH’ : undeclared identifier
u:\prot riangle.cpp(47) : error C2065: ‘BGL_RGB’ : undeclared identifier
u:\prot riangle.cpp(47) : error C2065: ‘BGL_DOUBLE’ : undeclared identifier
[This message has been edited by shehz (edited 09-16-2001).]