谁能帮帮忙看下 是什么地方出问题了 新手求教
#include <GL/glut.h>void doMyInit(void);
void display(void);
void reshape(void);
void idle(void);
void doMyInit(void){
}
void reshape(int w, int h){
}
void display(void){
}
void idle(void){
}
void main(int argc, char** argv){
glutInit(&argc,argv);
gultInitDisplayMode(GLUT_DOUBLE | GLUT_RGB);
glutInitWindowSize(600,800);
gultInitPosition(0,0);
glutCOLOR3f(1,0,0);
glutCreateWindow("A Sample Program");
doMyInit();
glutDisplayFunc(display);
glutResapeFunc(reshape);
glutIdleFunc(idle);
glutMainLoop();
}
结果显示
E:\学习\MyProjects\opgl\1.cpp(20) : error C2065: 'gultInitDisplayMode' : undeclared identifier
E:\学习\MyProjects\opgl\1.cpp(22) : error C2065: 'gultInitPosition' : undeclared identifier
E:\学习\MyProjects\opgl\1.cpp(23) : error C2065: 'glutCOLOR3f' : undeclared identifier
E:\学习\MyProjects\opgl\1.cpp(27) : error C2065: 'glutResapeFunc' : undeclared identifier