opengl ,计算机图形学代码,计算机图形,大学课程
LPTSTR lpCmdLine,
int nCmdShow)
{
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
char *argv[] = {"hello ", " "};
int argc = 2; // must/should match the number of strings in argv
glutInit(&argc, argv); //初始化GLUT库;
//设置深度检测下的显示模式;(缓冲,颜色类型,深度值)
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB|GLUT_DEPTH); glutInitWindowSize(600, 500);
glutInitWindowPosition(1024 / 2 - 250, 768 / 2 - 250); glutCreateWindow("简单机器人"); //创建窗口,标题为“ ”;
glutReshapeFunc(reshape);
init();
glutDisplayFunc(display); //用于绘制当前窗口;