wzhao53
12-01-2003, 08:04 AM
I developed a program to draw table and print some text dynamically in OpenGL.
Then the professor said I can not use glut.h, I can use only gl. glx is allowed.
I am using Visuaa C++ in Windows. How tough it is to change my code so that no glut is used?
Any sample code to start with without using glut?
Thanks!
For example, my main code is here:
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
glutInitWindowSize(500, 500);
glutInitWindowPosition(100, 100);
glutCreateWindow("Dynamic Programming Array");
Accept_String();
Insert();
init();
glutMouseFunc(mymouse);
glutKeyboardFunc(mykey);
glutDisplayFunc(display);
glutMainLoop();
Then the professor said I can not use glut.h, I can use only gl. glx is allowed.
I am using Visuaa C++ in Windows. How tough it is to change my code so that no glut is used?
Any sample code to start with without using glut?
Thanks!
For example, my main code is here:
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
glutInitWindowSize(500, 500);
glutInitWindowPosition(100, 100);
glutCreateWindow("Dynamic Programming Array");
Accept_String();
Insert();
init();
glutMouseFunc(mymouse);
glutKeyboardFunc(mykey);
glutDisplayFunc(display);
glutMainLoop();