Archived

This topic is now archived and is closed to further replies.

dynamo_wku

glutCreateSubWindow()

Recommended Posts

im having alot of problems using the glutCreateSubWindow() to create a second window....here is the error i get when trying to call it GLUT: Warning in C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\CS\OPENGL\glut test\Debug\glut test.exe: The following is a new check for GLUT 3.0; update your code. GLUT: Fatal Error in C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\CS\OPENGL\g lut test\Debug\glut test.exe: redisplay needed for window 2, but no display call back. here is my code
    
void main(int argc, char **argv) {
	glutInit(&argc, argv);
	glutInitDisplayMode(GLUT_DEPTH | GLUT_SINGLE | GLUT_RGBA);
	glutInitWindowPosition(100,100);
	glutInitWindowSize(320,320);
	int wMain = glutCreateWindow("Window title");
	glutDisplayFunc(renderScene);

	int wSub = glutCreateSubWindow(wMain,200,200,200,200);
	glutMainLoop();
}
    
[edited by - dynamo_wku on March 4, 2003 1:22:17 AM]

Share this post


Link to post
Share on other sites