aphlai
07-28-2001, 08:13 AM
I am using Visual C++ on Win Me. I tried a simple program like this
void renderpoly(void){
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(1.0,0.7,0.0);
glutWireTeapot(50);
glutSwapBuffers();
}
int WinMain .....
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB);
glutCreateWindow("Test undergoing");
glutDisplayFunc(renderpoly);
glClear is executed but the teaport is not seen, it is simply a blue window. Moreover, I would like to know when glutInitDisplayMode and glutCreateWindow is used, how I can set the window size???
BTW, thanks a lot
void renderpoly(void){
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(1.0,0.7,0.0);
glutWireTeapot(50);
glutSwapBuffers();
}
int WinMain .....
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB);
glutCreateWindow("Test undergoing");
glutDisplayFunc(renderpoly);
glClear is executed but the teaport is not seen, it is simply a blue window. Moreover, I would like to know when glutInitDisplayMode and glutCreateWindow is used, how I can set the window size???
BTW, thanks a lot